Lines Matching +full:upload +full:- +full:dir

1 #!/usr/bin/python -u
4 Utility to upload or remove the packages from the packages repository.
18 ACTION_UPLOAD = 'upload'
28 exclude_string = ('--exclude="deps/*" --exclude="tests/*" '
29 '--exclude="site_tests/*" --exclude="**.pyc"')
38 exclude_string += ' --exclude="profilers/%s"' % f
41 # directory. We use '-C' for tar to change to the required
50 # Also note that this only works because tar prevents us from un-tarring
59 parser.add_option("-d", "--dependency", help="package the dependency"
60 " from client/deps directory and upload to the repo",
62 parser.add_option("-p", "--profiler", help="package the profiler "
63 "from client/profilers directory and upload to the repo",
65 parser.add_option("-t", "--test", help="package the test from client/tests"
66 " or client/site_tests and upload to the repo.",
68 parser.add_option("-c", "--client", help="package the client "
71 parser.add_option("-f", "--file", help="simply uploads the specified"
73 parser.add_option("-r", "--repository", help="the URL of the packages"
74 "repository location to upload the packages to.",
76 parser.add_option("-o", "--output_dir", help="the output directory"
79 parser.add_option("-a", "--action", help="the action to perform",
82 parser.add_option("--all", help="Upload all the files locally "
98 # --action=tar_only send in clients in the command line. Please
104 # For all packages, the work-dir should have 'client' appended to it.
116 """Method to upload or remove package depending on the flag passed to it.
140 ' --exclude="**%s" --exclude="**%s.checksum" ' %
143 # We don't want any pre-existing tarballs and checksums to
162 # Tar the source and upload
183 # match then we don't need to perform the upload.
217 # We don't want any pre-existing tarballs and checksums to
220 ' --exclude="**%s" --exclude="**%s.checksum" ' %
235 """Process a full upload of packages as a directory upload."""
243 print ("Temp destination for packages is full %s, aborting upload: %s"
279 client_utils.run('rm -rf ' + temp_dir)
328 # Having no upload paths basically means you're not using packaging.
330 print("No upload locations found. Please set upload_location under"
332 " the --repository option.")
344 # Due to the delayed uprev-ing of certain ebuilds, we need to support
347 # old style remove/upload argument
349 if len(args) == 0 or args[0] not in ['upload', 'remove']:
350 print("Either 'upload' or 'remove' needs to be specified "
358 print("An output dir has to be specified")