Bug 1240945 - Add a --verbose option to mach package. r=mshal
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 20 Jan 2016 08:40:37 +0900
changeset 280808 de95a9403057a85e28988c778f95e853c3d46b0a
parent 280807 b113b4874656564361235f0bf9978def26ef20b7
child 280809 1a4c479ec7cd347ad7b939c434633234c8e20b2c
push id70596
push usermh@glandium.org
push dateThu, 21 Jan 2016 04:54:40 +0000
treeherdermozilla-inbound@7b9c54abd2fe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1240945
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1240945 - Add a --verbose option to mach package. r=mshal
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1004,18 +1004,21 @@ class ClangCommands(MachCommandBase):
 
 
 @CommandProvider
 class Package(MachCommandBase):
     """Package the built product for distribution."""
 
     @Command('package', category='post-build',
         description='Package the built product for distribution as an APK, DMG, etc.')
-    def package(self):
-        ret = self._run_make(directory=".", target='package', ensure_exit_code=False)
+    @CommandArgument('-v', '--verbose', action='store_true',
+        help='Verbose output for what commands the packaging process is running.')
+    def package(self, verbose=False):
+        ret = self._run_make(directory=".", target='package',
+                             silent=not verbose, ensure_exit_code=False)
         if ret == 0:
             self.notify('Packaging complete')
         return ret
 
 @CommandProvider
 class Install(MachCommandBase):
     """Install a package."""