X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=julia;h=f6906f517f9bd43f52e8bd7da1a251f0bda85abd;hb=e0b8c1b28a727fa524933497011a7aa6039e8561;hp=f3d8ac43890740b29e4ee56e8f43921bfed6b344;hpb=c1c7681bf43c58dd5cf34d1c1814a75ae594688b;p=dak.git diff --git a/julia b/julia index f3d8ac43..f6906f51 100755 --- a/julia +++ b/julia @@ -2,7 +2,7 @@ # Sync PostgreSQL with (LDAP-generated) passwd file # Copyright (C) 2001 James Troup -# $Id: julia,v 1.3 2001-11-04 22:28:44 troup Exp $ +# $Id: julia,v 1.5 2002-02-12 22:14:38 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 @@ -30,7 +30,7 @@ ################################################################################ -import os, pg, string, sys; +import pg, string, sys; import utils; import apt_pkg; @@ -54,16 +54,14 @@ Sync PostgreSQL's pg_user with PASSWD_FILE. 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 = [('q',"quiet","Julia::Options::Quiet"), ('v',"verbose","Julia::Options::Verbose"), ('h',"help","Julia::Options::Help")]; for i in ["quiet", "verbose", "help" ]: - Cnf["Julia::Options::%s" % (i)] = ""; + if not Cnf.has_key("Julia::Options::%s" % (i)): + Cnf["Julia::Options::%s" % (i)] = ""; arguments = apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv); Options = Cnf.SubTree("Julia::Options")