X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ziyi;h=81db8cdb1e257b900f648b99d6bb413f9ed86008;hb=2f5e692bfbbb6f8146f50d944f7fcc169a95a0a3;hp=f9642af8fc072df133616d4e1d3f39dd703059f7;hpb=083a06be9f96e0e19bed7642352dbf14aa267044;p=dak.git diff --git a/ziyi b/ziyi index f9642af8..81db8cdb 100755 --- a/ziyi +++ b/ziyi @@ -3,7 +3,7 @@ # Create all the Release files # Copyright (C) 2001 Anthony Towns -# $Id: ziyi,v 1.9 2001-11-04 22:33:22 troup Exp $ +# $Id: ziyi,v 1.10 2001-11-18 19:57:58 rmurray 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 @@ -90,18 +90,15 @@ def main (): global Cnf, AptCnf, projectB, out out = sys.stdout; - - apt_pkg.init() - - Cnf = apt_pkg.newConfiguration() - apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file()) + 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" ]: - Cnf["Ziyi::Options::%s" % (i)] = ""; + if not Cnf.has_key("Ziyi::Options::%s" % (i)): + Cnf["Ziyi::Options::%s" % (i)] = ""; suites = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv) Options = Cnf.SubTree("Ziyi::Options")