From 9daba71e0a0d757ef91f8426bcdad6c234d8b942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 24 Jun 2005 21:08:41 +0000 Subject: [PATCH] =?UTF-8?q?pisi-build=20parametre=20olarak=20verilen=20bir?= =?UTF-8?q?den=20fazla=20pspec=20dosyas=C4=B1n=C4=B1=20da=20kabul=20edebil?= =?UTF-8?q?ir.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ./pisi-build samples/popt/popt.pspec samples/startup-notification/startup-notification.pspec --- pisi-build | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/pisi-build b/pisi-build index a7cadebe..41bb0f93 100755 --- a/pisi-build +++ b/pisi-build @@ -30,23 +30,12 @@ def main(): (options, args) = parser.parse_args() # pspec(PISI Spec) to be used for package - pspec = "" - - # TODO: We accept only one pspec file (at a time) currently, - # but pisi-build may build many packages (pspecs given in order) - # sequentially. - if len(args) != 1: - print "pisi-build expects one (and only one) pspec file currently" - print usage - sys.exit(2) - else: - pspec = args[0] - - # What we need to do first is create a context with our specfile - ctx = pisi.context.BuildContext(pspec) - # don't do the real job here. this is just a CLI! - pb = PisiBuild(ctx) - pb.build() + for pspec in args: + # What we need to do first is create a context with our specfile + ctx = pisi.context.BuildContext(pspec) + # don't do the real job here. this is just a CLI! + pb = PisiBuild(ctx) + pb.build() if __name__ == "__main__": main()