From: Michael Tremer Date: Tue, 23 Mar 2010 15:25:37 +0000 (+0100) Subject: naoki: Add switch to build only dependencies of a given package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21fffd0984a5459f80e638d14ebfc20e08ff2030;p=ipfire-3.x.git naoki: Add switch to build only dependencies of a given package. ./make.sh build --only-deps will build all dependencies for the package but not the package itself. --- diff --git a/naoki/__init__.py b/naoki/__init__.py index 6abc362be..23e54854d 100644 --- a/naoki/__init__.py +++ b/naoki/__init__.py @@ -82,9 +82,10 @@ class Naoki(object): self.log.warn("Skipping %s which was already built" % package.name) continue - packages.append(package) + if not args.onlydeps: + packages.append(package) - if args.withdeps: + if args.withdeps or args.onlydeps: deps = [] for dep in package.dependencies_all: if not dep.built: diff --git a/naoki/terminal.py b/naoki/terminal.py index c19d20e9a..c979cbd4e 100644 --- a/naoki/terminal.py +++ b/naoki/terminal.py @@ -256,6 +256,7 @@ class Commandline(object): help="Primary build command", arguments=[ Option("withdeps", ["--with-deps"], help="Build all dependencies first if needed"), + Option("onlydeps", ["--only-deps"], help="Build only dependencies that belong to a package"), List("packages", help="Give a list of packages to build or say 'all'"), ]),