Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: scripts/slave/recipe_modules/zip/api.py

Issue 2355483004: Add CIPD GAE SDK recipe module and packager. (Closed)
Patch Set: pylint Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cd31372d97315beb444b68400abfdac1fd59bac5 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,11 +53,14 @@ 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),
+ 'quiet': quiet,
}
self.m.python(
name=step_name,
« no previous file with comments | « scripts/slave/recipe_modules/gae_sdk/example.expected/win.json ('k') | scripts/slave/recipe_modules/zip/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698