diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-07-08 20:04:53 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-09-10 14:03:31 -0400 |
commit | a4da77b0b759eaf8a131f33a6daed6c76364f885 (patch) | |
tree | 2da1b79c4741bd734054b64f750265bf78be4699 | |
parent | 848be21cd07002f8d9c230aed5233b433cda8dba (diff) |
fetch: Add --deps to also "fetch-package" to also fetch dependencies
https://bugzilla.gnome.org/show_bug.cgi?id=742830
-rw-r--r-- | cerbero/commands/fetch.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cerbero/commands/fetch.py b/cerbero/commands/fetch.py index fab6eb61..4fcebc94 100644 --- a/cerbero/commands/fetch.py +++ b/cerbero/commands/fetch.py @@ -100,6 +100,8 @@ class FetchPackage(Fetch): args = [ ArgparseArgument('package', nargs=1, help=_('package to fetch')), + ArgparseArgument('--deps', action='store_false', + default=True, help=_('also fetch dependencies')), ] Fetch.__init__(self, args) @@ -107,7 +109,7 @@ class FetchPackage(Fetch): store = PackagesStore(config) package = store.get_package(args.package[0]) return self.fetch(store.cookbook, package.recipes_dependencies(), - True, args.reset_rdeps, args.full_reset) + args.deps, args.reset_rdeps, args.full_reset) register_command(FetchRecipes) |