X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=charisma;h=c88fa52559633e588458cb6c343511300010ba1b;hb=fc1e81cf87861694e19b96afa8dd849dd967343c;hp=63d9a918e29db617edaa54e6840ac69f08c82fe4;hpb=a092f0aa8e82394e25a16da9e87263ee26b8de0e;p=dak.git diff --git a/charisma b/charisma index 63d9a918..c88fa525 100755 --- a/charisma +++ b/charisma @@ -2,7 +2,7 @@ # Generate Maintainers file used by e.g. the Debian Bug Tracking System # Copyright (C) 2000, 2001 James Troup -# $Id: charisma,v 1.11 2001-09-27 01:23:41 troup Exp $ +# $Id: charisma,v 1.12 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 @@ -76,13 +76,12 @@ def get_maintainer_from_source (source_id): def main(): global Cnf, projectB; - apt_pkg.init(); - - Cnf = apt_pkg.newConfiguration(); - apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file()); + Cnf = utils.get_conf() Arguments = [('h',"help","Charisma::Options::Help")]; - Cnf["Charisma::Options::Help"] = ""; + if not Cnf.has_key("Charisma::Options::Help"): + Cnf["Charisma::Options::Help"] = ""; + extra_files = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv); Options = Cnf.SubTree("Charisma::Options");