diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-04-17 01:28:18 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-04-17 01:28:18 +0300 |
commit | 6a7c30c670ae8401bfd57d60ca4dc78a46d62f44 (patch) | |
tree | 4e75103632825700f468fe0cfc9be4fcdf922c76 /utils | |
parent | 7a610400d5de47a071877864864ee5d8999aee07 (diff) |
Strip remote paths to be correct.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/new-publish/propagate.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/new-publish/propagate.py b/utils/new-publish/propagate.py index 95f4bb2..a0ca034 100755 --- a/utils/new-publish/propagate.py +++ b/utils/new-publish/propagate.py @@ -30,11 +30,12 @@ if __name__ == "__main__": for root, dirs, files in os.walk(os.path.join(LOCAL_UPLOAD_DIR, args[0])): file_list.extend([os.path.join(root, f) for f in files]) print file_list - dir_list = publish.make_dir_struct(file_list) + strip = len(LOCAL_UPLOAD_DIR.strip("/").split("/")) + dir_list = publish.make_dir_struct(file_list, strip=strip) print dir_list if not options.dry_run: publish.create_dir_struct(dir_list, REMOTE_HOST, PUBLISH_USER_NAME, options.identity_publish) - upload_script = publish.make_upload_script(file_list) + upload_script = publish.make_upload_script(file_list, strip=strip) publish.upload_files(upload_script, REMOTE_HOST, PUBLISH_USER_NAME, options.identity_publish, options) |