| Index: scripts/slave/recipe_modules/zip/api.py
|
| diff --git a/scripts/slave/recipe_modules/zip/api.py b/scripts/slave/recipe_modules/zip/api.py
|
| index 0d915173c4153c7c3494e35d01c9c2f875017bfb..bee9d8fe8b169a0f3405995193a74a649aba3017 100644
|
| --- a/scripts/slave/recipe_modules/zip/api.py
|
| +++ b/scripts/slave/recipe_modules/zip/api.py
|
| @@ -41,7 +41,7 @@ class ZipApi(recipe_api.RecipeApi):
|
| pkg.add_directory(directory)
|
| pkg.zip(step_name)
|
|
|
| - def unzip(self, step_name, zip_file, output):
|
| + def unzip(self, step_name, zip_file, output, quiet=False):
|
| """Step to uncompress |zip_file| into |output| directory.
|
|
|
| Zip package will be unpacked to |output| so that root of an archive is in
|
| @@ -53,12 +53,16 @@ class ZipApi(recipe_api.RecipeApi):
|
| step_name: display name of a step.
|
| zip_file: path to a zip file to uncompress, should exist.
|
| output: path to a directory to unpack to, it should NOT exist.
|
| + quiet (bool): If True, print terse output instead of the name
|
| + of each unzipped file.
|
| """
|
| # TODO(vadimsh): Use 7zip on Windows if available?
|
| script_input = {
|
| 'output': str(output),
|
| 'zip_file': str(zip_file),
|
| }
|
| + if quiet:
|
| + script_input['quiet'] = True
|
| self.m.python(
|
| name=step_name,
|
| script=self.resource('unzip.py'),
|
|
|