message = '[auto-cruft] no longer built from source and no reverse dependencies'
for row in rows:
package = row[0]
- if utils.check_reverse_depends([package], suite_name, [], session, True):
+ if utils.check_reverse_depends([package], suite_name, [], session, cruft=True, quiet=True):
continue
if dryrun:
arch2ids = {}
for row in rows:
(pkg_list, arch_list, source, _) = row
- if utils.check_reverse_depends(pkg_list, suite_name, arch_list, session, True):
+ if utils.check_reverse_depends(pkg_list, suite_name, arch_list, session, cruft=True, quiet=True):
continue
arch_string = ','.join(arch_list)
message = '[auto-cruft] NBS (no longer built by %s and had no reverse dependencies)' % source
################################################################################
-def check_reverse_depends(removals, suite, arches=None, session=None, cruft=False):
+def check_reverse_depends(removals, suite, arches=None, session=None, cruft=False, quiet=False):
dbsuite = get_suite(suite, session)
overridesuite = dbsuite
if dbsuite.overridesuite is not None:
all_broken.setdefault(source, {}).setdefault(package, set()).add(architecture)
dep_problem = 1
- if all_broken:
+ if all_broken and not quiet:
if cruft:
print " - broken Depends:"
else:
all_broken.setdefault(key, set()).add(pp_deps(dep))
dep_problem = 1
- if all_broken:
+ if all_broken and not quiet:
if cruft:
print " - broken Build-Depends:"
else: