зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1854571 - Print package path in mach package. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D207204
This commit is contained in:
Родитель
484fe1f9b4
Коммит
c8fc09e329
|
@ -1157,9 +1157,28 @@ def package(command_context, verbose=False):
|
|||
)
|
||||
if ret == 0:
|
||||
command_context.notify("Packaging complete")
|
||||
_print_package_name(command_context)
|
||||
return ret
|
||||
|
||||
|
||||
def _print_package_name(command_context):
|
||||
dist_path = mozpath.join(command_context.topobjdir, "dist")
|
||||
package_name_path = mozpath.join(dist_path, "package_name.txt")
|
||||
if not os.path.exists(package_name_path):
|
||||
return
|
||||
|
||||
with open(package_name_path, "r") as f:
|
||||
package_name = f.read().strip()
|
||||
package_path = mozpath.join(dist_path, package_name)
|
||||
|
||||
if not os.path.exists(package_path):
|
||||
return
|
||||
|
||||
command_context.log(
|
||||
logging.INFO, "package", {}, "Created package: {}".format(package_path)
|
||||
)
|
||||
|
||||
|
||||
def _get_android_install_parser():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
|
|
|
@ -119,6 +119,7 @@ prepare-package: stage-package
|
|||
make-package-internal: prepare-package make-sourcestamp-file
|
||||
@echo 'Compressing...'
|
||||
$(call MAKE_PACKAGE,$(DIST))
|
||||
echo $(PACKAGE) > $(ABS_DIST)/package_name.txt
|
||||
|
||||
make-package: FORCE
|
||||
$(MAKE) make-package-internal
|
||||
|
|
Загрузка…
Ссылка в новой задаче