From a4da77b0b759eaf8a131f33a6daed6c76364f885 Mon Sep 17 00:00:00 2001 From: Olivier CrĂȘte Date: Wed, 8 Jul 2015 20:04:53 -0400 Subject: fetch: Add --deps to also "fetch-package" to also fetch dependencies https://bugzilla.gnome.org/show_bug.cgi?id=742830 --- cerbero/commands/fetch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3