X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcruft_report.py;h=6d7db38512fe7b2a061a83384ff89fe3d3d9445a;hb=6aa926a257c755fc75b394d9d0a7273faf994a2d;hp=6200aa2c67481c9b3fb84563369861e0e26f2c39;hpb=ce0d1161ff47211e8cf9dd417de06603d1fc8000;p=dak.git diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 6200aa2c..6d7db385 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -244,7 +244,7 @@ def reportWithoutSource(suite_name, suite_id, session, rdeps=False): print " dak rm -m %s -s %s -a all -p -R -b %s" % \ (message, suite_name, package) if rdeps: - if utils.check_reverse_depends([package], suite_name, ["all"], session, True): + if utils.check_reverse_depends([package], suite_name, [], session, True): print else: print " - No dependency problem found\n" @@ -680,7 +680,7 @@ def main (): # Checks based on the Sources files components = get_component_names(session) for component in components: - filename = "%s/dists/%s/%s/source/Sources.gz" % (cnf["Dir::Root"], suite_name, component) + filename = "%s/dists/%s/%s/source/Sources.gz" % (suite.archive.path, suite_name, component) # apt_pkg.ParseTagFile needs a real file handle and can't handle a GzipFile instance... (fd, temp_filename) = utils.temp_filename() (result, output) = commands.getstatusoutput("gunzip -c %s > %s" % (filename, temp_filename)) @@ -729,7 +729,7 @@ def main (): for architecture in architectures: if component == 'main/debian-installer' and re.match("kfreebsd", architecture): continue - filename = "%s/dists/%s/%s/binary-%s/Packages.gz" % (cnf["Dir::Root"], suite_name, component, architecture) + filename = "%s/dists/%s/%s/binary-%s/Packages.gz" % (suite.archive.path, suite_name, component, architecture) # apt_pkg.ParseTagFile needs a real file handle (fd, temp_filename) = utils.temp_filename() (result, output) = commands.getstatusoutput("gunzip -c %s > %s" % (filename, temp_filename))