Essien Ita Essien wrote:
Jesse Keating wrote:
On Monday 12 February 2007 06:51, Essien Ita Essien wrote:
This is another small patch. What it does is breakup the pungi process
into different stages that can be invoked independently without going
thru all the stages. the stages are:
- Gather (-G)
- Buildinstall (-B)
- Package Order (-P)
- Splittree (-S)
- Iso Creation (-I)
Hi, there is no patch attached...
DOH!!!
please ignore previous patch... correct one is attached.
diff -r f777e0a1e69c pungi
--- a/pungi Mon Feb 12 12:27:57 2007 +0100
+++ b/pungi Mon Feb 12 17:24:12 2007 +0100
@@ -90,20 +90,28 @@ def main():
# Actually do work.
if not config.get('default', 'arch') == 'source':
- mygather = pypungi.gather.Gather(config, pkglist)
- mygather.getPackageObjects()
- mygather.downloadPackages()
- if config.getboolean('default', 'getsource'):
- mygather.getSRPMList()
- mygather.downloadSRPMs()
+ if opts.do_all or opts.do_gather:
+ mygather = pypungi.gather.Gather(config, pkglist)
+ mygather.getPackageObjects()
+ mygather.downloadPackages()
+ if config.getboolean('default', 'getsource'):
+ mygather.getSRPMList()
+ mygather.downloadSRPMs()
mypungi = pypungi.pungi.Pungi(config)
- mypungi.doBuildinstall()
- mypungi.doPackageorder()
- mypungi.doGetRelnotes()
- mypungi.doSplittree()
- mypungi.doCreateSplitrepo()
- mypungi.doCreateIsos()
+
+ if opts.do_all or opts.do_buildinstall:
+ mypungi.doBuildinstall()
+
+ if opts.do_all or opts.do_packageorder:
+ mypungi.doPackageorder()
+ mypungi.doGetRelnotes()
+
+ if opts.do_all or opts.do_splittree:
+ mypungi.doSplittree()
+ if opts.do_all or opts.do_createiso:
+ mypungi.doCreateSplitrepo()
+ mypungi.doCreateIsos(config.get('default', 'iso_dir'))
# Do things slightly different for src.
if config.get('default', 'arch') == 'source':
@@ -113,8 +121,11 @@ def main():
config.get('default', 'version'),
config.get('default', 'flavor'),
'source', 'SRPM')
- mypungi.doSplitSRPMs()
- mypungi.doCreateIsos()
+ if opts.do_all or opts.do_splittree:
+ mypungi.doSplitSRPMs()
+
+ if opts.do_all or opts.do_createiso:
+ mypungi.doCreateIsos()
if __name__ == '__main__':
from optparse import OptionParser
@@ -143,9 +154,17 @@ if __name__ == '__main__':
parser.add_option("-c", "--conf", default='/etc/pungi/pungi.conf', dest="config",
help='Config file to use')
+ parser.add_option("--all-stages", action="store_true", default=True, dest="do_all", help="Enable ALL stages")
+ parser.add_option("-B", action="store_true", default=False, dest="do_buildinstall", help="Flag to enable processing the BuildInstall stage")
+ parser.add_option("-G", action="store_true", default=False, dest="do_gather", help="Flag to enable processing the Gather stage")
+ parser.add_option("-P", action="store_true", default=False, dest="do_packageorder", help="Flag to enable processing the Package Order stage")
+ parser.add_option("-S", action="store_true", default=False, dest="do_splittree", help="Flag to enable processing the SplitTree stage")
+ parser.add_option("-I", action="store_true", default=False, dest="do_createiso", help="Flag to enable processing the CreateISO stage")
(opts, args) = parser.parse_args()
+ if opts.do_gather or opts.do_buildinstall or opts.do_packageorder or opts.do_splittree or opts.do_createiso:
+ opts.do_all = False
#if len(opts) < 1:
# parser.print_help()
# sys.exit(0)
--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list