Wire up a commandline option for selfhosting support.
Signed-off-by: Bill Nottingham <notting@redhat.com>
This commit is contained in:
parent
28412ffc8f
commit
2c2a1178ae
@ -86,13 +86,16 @@ def main():
|
|||||||
mypungi._inityum() # initialize the yum object for things that need it
|
mypungi._inityum() # initialize the yum object for things that need it
|
||||||
if opts.do_all or opts.do_gather:
|
if opts.do_all or opts.do_gather:
|
||||||
mypungi.getPackageObjects()
|
mypungi.getPackageObjects()
|
||||||
|
if not opts.nosource or opts.selfhosting:
|
||||||
|
mypungi.getSRPMList()
|
||||||
|
if opts.selfhosting:
|
||||||
|
mypungi.resolvePackageBuildDeps()
|
||||||
mypungi.downloadPackages()
|
mypungi.downloadPackages()
|
||||||
mypungi.makeCompsFile()
|
mypungi.makeCompsFile()
|
||||||
if not opts.nodebuginfo:
|
if not opts.nodebuginfo:
|
||||||
mypungi.getDebuginfoList()
|
mypungi.getDebuginfoList()
|
||||||
mypungi.downloadDebuginfo()
|
mypungi.downloadDebuginfo()
|
||||||
if not opts.nosource:
|
if not opts.nosource:
|
||||||
mypungi.getSRPMList()
|
|
||||||
mypungi.downloadSRPMs()
|
mypungi.downloadSRPMs()
|
||||||
|
|
||||||
if opts.do_all or opts.do_createrepo:
|
if opts.do_all or opts.do_createrepo:
|
||||||
@ -153,6 +156,8 @@ if __name__ == '__main__':
|
|||||||
parser.add_option("--bugurl", dest="bugurl", type="string",
|
parser.add_option("--bugurl", dest="bugurl", type="string",
|
||||||
action="callback", callback=set_config, callback_args=(config, ),
|
action="callback", callback=set_config, callback_args=(config, ),
|
||||||
help='the url for your bug system (defaults to http://bugzilla.redhat.com)')
|
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",
|
parser.add_option("--nosource", action="store_true", dest="nosource",
|
||||||
help='disable gathering of source packages (optional)')
|
help='disable gathering of source packages (optional)')
|
||||||
parser.add_option("--nodebuginfo", action="store_true", dest="nodebuginfo",
|
parser.add_option("--nodebuginfo", action="store_true", dest="nodebuginfo",
|
||||||
|
Loading…
Reference in New Issue
Block a user