From 2c2a1178ae7b51b53c6df01238ca8375f14ab542 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 3 Apr 2009 15:53:55 -0400 Subject: [PATCH] Wire up a commandline option for selfhosting support. Signed-off-by: Bill Nottingham --- src/bin/pungi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/pungi.py b/src/bin/pungi.py index 787f52c3..8a753e6b 100755 --- a/src/bin/pungi.py +++ b/src/bin/pungi.py @@ -86,13 +86,16 @@ def main(): mypungi._inityum() # initialize the yum object for things that need it if opts.do_all or opts.do_gather: mypungi.getPackageObjects() + if not opts.nosource or opts.selfhosting: + mypungi.getSRPMList() + if opts.selfhosting: + mypungi.resolvePackageBuildDeps() mypungi.downloadPackages() mypungi.makeCompsFile() if not opts.nodebuginfo: mypungi.getDebuginfoList() mypungi.downloadDebuginfo() if not opts.nosource: - mypungi.getSRPMList() mypungi.downloadSRPMs() if opts.do_all or opts.do_createrepo: @@ -153,6 +156,8 @@ if __name__ == '__main__': parser.add_option("--bugurl", dest="bugurl", type="string", action="callback", callback=set_config, callback_args=(config, ), help='the url for your bug system (defaults to http://bugzilla.redhat.com)') + parser.add_option("--selfhosting", action="store_true", dest="selfhosting", + help='build a self-hosting tree by following build dependencies (optional)') parser.add_option("--nosource", action="store_true", dest="nosource", help='disable gathering of source packages (optional)') parser.add_option("--nodebuginfo", action="store_true", dest="nodebuginfo",