X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ziyi;h=d6b3782debd51f499d407565f0f5bc7b6f326014;hb=7508a8d32516ea2123be828cdf204675c2d326f9;hp=16e1ba163b81c4259f7243c8995583549946b08f;hpb=0ea570b0ff8bb87f8799053bbd4552d444bbe2f2;p=dak.git diff --git a/ziyi b/ziyi index 16e1ba16..d6b3782d 100755 --- a/ziyi +++ b/ziyi @@ -3,7 +3,7 @@ # Create all the Release files # Copyright (C) 2001, 2002 Anthony Towns -# $Id: ziyi,v 1.24 2002-12-08 17:25:00 troup Exp $ +# $Id: ziyi,v 1.25 2003-01-02 18:14:28 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -37,10 +37,12 @@ AptCnf = None ################################################################################ def usage (exit_code=0): - print """Usage: ziyi [OPTION] -Generate Release files. + print """Usage: ziyi [OPTION]... [SUITE]... +Generate Release files (for SUITE). - -h, --help show this help and exit""" + -h, --help show this help and exit + +If no SUITE is given Release files are generated for all suites.""" sys.exit(exit_code) @@ -118,9 +120,6 @@ def main (): Cnf = utils.get_conf() - AptCnf = apt_pkg.newConfiguration() - apt_pkg.ReadConfigFileISC(AptCnf,utils.which_apt_conf_file()) - Arguments = [('h',"help","Ziyi::Options::Help")]; for i in [ "help" ]: if not Cnf.has_key("Ziyi::Options::%s" % (i)): @@ -132,6 +131,9 @@ def main (): if Options["Help"]: usage(); + AptCnf = apt_pkg.newConfiguration() + apt_pkg.ReadConfigFileISC(AptCnf,utils.which_apt_conf_file()) + if not suites: suites = Cnf.SubTree("Suite").List()