]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Add switch to build only dependencies of a given package.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Mar 2010 15:25:37 +0000 (16:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Mar 2010 15:25:37 +0000 (16:25 +0100)
./make.sh build <package> --only-deps will build all dependencies
for the package but not the package itself.

naoki/__init__.py
naoki/terminal.py

index 6abc362be686e44ce3acd5c0efc24eb7890d5b45..23e54854dc373e7f81487ebcdcfeacfabb63b31a 100644 (file)
@@ -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:
index c19d20e9a41d57cb465c08fc59f7644c6b99c167..c979cbd4e1d8ec38a3589250bc3dc9edf8b360b6 100644 (file)
@@ -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'"),
                                        ]),