pisi-build parametre olarak verilen birden fazla pspec dosyasını da
kabul edebilir. ./pisi-build samples/popt/popt.pspec samples/startup-notification/startup-notification.pspec
This commit is contained in:
+6
-17
@@ -30,23 +30,12 @@ def main():
|
|||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
# pspec(PISI Spec) to be used for package
|
# pspec(PISI Spec) to be used for package
|
||||||
pspec = ""
|
for pspec in args:
|
||||||
|
# What we need to do first is create a context with our specfile
|
||||||
# TODO: We accept only one pspec file (at a time) currently,
|
ctx = pisi.context.BuildContext(pspec)
|
||||||
# but pisi-build may build many packages (pspecs given in order)
|
# don't do the real job here. this is just a CLI!
|
||||||
# sequentially.
|
pb = PisiBuild(ctx)
|
||||||
if len(args) != 1:
|
pb.build()
|
||||||
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()
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user