Bug 1455127 - Remove --package from upload.py; r=ted

The argument is never used in the local file copying function. So let's
nuke the argument.

MozReview-Commit-ID: JeU4LaVvGD7

--HG--
extra : rebase_source : 0e305c5bff0e3871fd11a554d75e7f53ceea4bdd
This commit is contained in:
Gregory Szorc 2018-04-19 09:31:00 -07:00
Родитель 5de6850705
Коммит 893a9ad99d
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -59,7 +59,7 @@ def GetBaseRelativePath(path, local_file, base_path):
return path + dir
def CopyFilesLocally(path, files, verbose=False, base_path=None, package=None):
def CopyFilesLocally(path, files, verbose=False, base_path=None):
"""Copy each file in the list of files to `path`. The `base_path` argument is treated
as it is by UploadFiles."""
if not path.endswith("/"):
@ -91,9 +91,6 @@ if __name__ == '__main__':
action="store",
help="Preserve file paths relative to this path when uploading. "
"If unset, all files will be uploaded directly to UPLOAD_PATH.")
parser.add_option("--package",
action="store",
help="Name of the main package.")
(options, args) = parser.parse_args()
if len(args) < 1:
print("You must specify at least one file to upload")
@ -101,7 +98,6 @@ if __name__ == '__main__':
try:
CopyFilesLocally(path, args, base_path=options.base_path,
package=options.package,
verbose=True)
except IOError as strerror:
print(strerror)

Просмотреть файл

@ -151,7 +151,6 @@ checksum:
upload: checksum
$(PYTHON) -u $(MOZILLA_DIR)/build/upload.py --base-path $(DIST) \
--package '$(PACKAGE)' \
$(UPLOAD_FILES) \
$(CHECKSUM_FILES)