X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=christina;h=15b3a64dc32ee683f877b8be72175eff308fe286;hb=fc1e81cf87861694e19b96afa8dd849dd967343c;hp=18b968bc40990ed4c0fdcf5ce1bdce6c4f4112a7;hpb=8baad6c080b17dac3f4c643e48639dc81170ce02;p=dak.git diff --git a/christina b/christina index 18b968bc..15b3a64d 100644 --- a/christina +++ b/christina @@ -2,7 +2,7 @@ # Compares Packages-Arch-Specific (from Quinn-Diff) against the archive # Copyright (C) 2000, 2001 James Troup -# $Id: christina,v 1.2 2001-07-07 03:15:36 troup Exp $ +# $Id: christina,v 1.4 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 @@ -97,10 +97,7 @@ def get_source (): 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 = [('d',"debug","Christina::Options::Debug", "IntVal"), ('h',"help","Christina::Options::Help"), @@ -118,7 +115,7 @@ def main (): as_source = {}; filename = "/org/buildd.debian.org/web/quinn-diff/Packages-arch-specific"; - file = utils.open_file(filename, 'r'); + file = utils.open_file(filename); line_count = 0; for line in file.readlines(): line = string.strip(utils.re_comments.sub("", line));