4 Check for obsolete binary packages
6 @contact: Debian FTP Master <ftpmaster@debian.org>
7 @copyright: 2000-2006 James Troup <james@nocrew.org>
8 @copyright: 2009 Torsten Werner <twerner@debian.org>
9 @license: GNU General Public License version 2 or later
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 ################################################################################
28 # ``If you're claiming that's a "problem" that needs to be "fixed",
29 # you might as well write some letters to God about how unfair entropy
30 # is while you're at it.'' -- 20020802143104.GA5628@azure.humbug.org.au
32 ## TODO: fix NBS looping for version, implement Dubious NBS, fix up output of
33 ## duplicate source package stuff, improve experimental ?, add overrides,
34 ## avoid ANAIS for duplicated packages
36 ################################################################################
38 import commands, os, sys, re
41 from daklib.config import Config
42 from daklib.dbconn import *
43 from daklib import utils
44 from daklib.regexes import re_extract_src_version
45 from daklib.cruft import *
47 ################################################################################
49 no_longer_in_suite = {}; # Really should be static to add_nbs, but I'm lazy
54 ################################################################################
56 def usage(exit_code=0):
57 print """Usage: dak cruft-report
58 Check for obsolete or duplicated packages.
60 -h, --help show this help and exit.
61 -m, --mode=MODE chose the MODE to run in (full, daily, bdo).
62 -s, --suite=SUITE check suite SUITE.
63 -R, --rdep-check check reverse dependencies
64 -w, --wanna-build-dump where to find the copies of http://buildd.debian.org/stats/*.txt"""
67 ################################################################################
69 def add_nbs(nbs_d, source, version, package, suite_id, session):
70 # Ensure the package is still in the suite (someone may have already removed it)
71 if no_longer_in_suite.has_key(package):
74 q = session.execute("""SELECT b.id FROM binaries b, bin_associations ba
75 WHERE ba.bin = b.id AND ba.suite = :suite_id
76 AND b.package = :package LIMIT 1""", {'suite_id': suite_id,
79 no_longer_in_suite[package] = ""
82 nbs_d.setdefault(source, {})
83 nbs_d[source].setdefault(version, {})
84 nbs_d[source][version][package] = ""
86 ################################################################################
88 # Check for packages built on architectures they shouldn't be.
89 def do_anais(architecture, binaries_list, source, session):
90 if architecture == "any" or architecture == "all":
95 for arch in architecture.split():
96 architectures[arch.strip()] = ""
97 for binary in binaries_list:
98 q = session.execute("""SELECT a.arch_string, b.version
99 FROM binaries b, bin_associations ba, architecture a
100 WHERE ba.suite = :suiteid AND ba.bin = b.id
101 AND b.architecture = a.id AND b.package = :package""",
102 {'suiteid': suite_id, 'package': binary})
108 if architectures.has_key(arch):
109 versions.append(version)
110 versions.sort(apt_pkg.version_compare)
112 latest_version = versions.pop()
114 latest_version = None
115 # Check for 'invalid' architectures
120 if not architectures.has_key(arch):
121 versions_d.setdefault(version, [])
122 versions_d[version].append(arch)
125 anais_output += "\n (*) %s_%s [%s]: %s\n" % (binary, latest_version, source, architecture)
126 versions = versions_d.keys()
127 versions.sort(apt_pkg.version_compare)
128 for version in versions:
129 arches = versions_d[version]
131 anais_output += " o %s: %s\n" % (version, ", ".join(arches))
135 ################################################################################
137 # Check for out-of-date binaries on architectures that do not want to build that
138 # package any more, and have them listed as Not-For-Us
139 def do_nfu(nfu_packages):
144 for architecture in nfu_packages:
145 a2p[architecture] = []
146 for (package,bver,sver) in nfu_packages[architecture]:
147 output += " * [%s] does not want %s (binary %s, source %s)\n" % (architecture, package, bver, sver)
148 a2p[architecture].append(package)
152 print "Obsolete by Not-For-Us"
153 print "----------------------"
157 print "Suggested commands:"
158 for architecture in a2p:
159 if a2p[architecture]:
160 print (" dak rm -m \"[auto-cruft] NFU\" -s %s -a %s -b %s" %
161 (suite.suite_name, architecture, " ".join(a2p[architecture])))
164 def parse_nfu(architecture):
166 # utils/hpodder_1.1.5.0: Not-For-Us [optional:out-of-date]
167 r = re.compile("^\w+/([^_]+)_.*: Not-For-Us")
171 filename = "%s/%s-all.txt" % (cnf["Cruft-Report::Options::Wanna-Build-Dump"], architecture)
173 # Not all architectures may have a wanna-build dump, so we want to ignore missin
175 if os.path.exists(filename):
176 f = utils.open_file(filename)
187 utils.warn("No wanna-build dump file for architecture %s" % architecture)
190 ################################################################################
192 def do_newer_version(lowersuite_name, highersuite_name, code, session):
193 list = newer_version(lowersuite_name, highersuite_name, session)
196 title = "Newer version in %s" % lowersuite_name
198 print "-" * len(title)
201 (source, higher_version, lower_version) = i
202 print " o %s (%s, %s)" % (source, higher_version, lower_version)
203 nv_to_remove.append(source)
205 print "Suggested command:"
206 print " dak rm -m \"[auto-cruft] %s\" -s %s %s" % (code, highersuite_name,
207 " ".join(nv_to_remove))
210 ################################################################################
212 def queryWithoutSource(suite_id, session):
213 """searches for arch: all packages from suite that do no longer
214 reference a source package in the same suite
216 subquery unique_binaries: selects all packages with only 1 version
217 in suite since 'dak rm' does not allow to specify version numbers"""
220 with unique_binaries as
221 (select package, max(version) as version, max(source) as source
222 from bin_associations_binaries
223 where architecture = 2 and suite = :suite_id
224 group by package having count(*) = 1)
225 select ub.package, ub.version
226 from unique_binaries ub
227 left join src_associations_src sas
228 on ub.source = sas.src and sas.suite = :suite_id
230 order by ub.package"""
231 return session.execute(query, { 'suite_id': suite_id })
233 def reportWithoutSource(suite_name, suite_id, session, rdeps=False):
234 rows = queryWithoutSource(suite_id, session)
235 title = 'packages without source in suite %s' % suite_name
236 if rows.rowcount > 0:
237 print '%s\n%s\n' % (title, '-' * len(title))
238 message = '"[auto-cruft] no longer built from source"'
240 (package, version) = row
241 print "* package %s in version %s is no longer built from source" % \
243 print " - suggested command:"
244 print " dak rm -m %s -s %s -a all -p -R -b %s" % \
245 (message, suite_name, package)
247 if utils.check_reverse_depends([package], suite_name, ["all"], session, True):
250 print " - No dependency problem found\n"
254 def queryNewerAll(suite_name, session):
255 """searches for arch != all packages that have an arch == all
256 package with a higher version in the same suite"""
259 select bab1.package, bab1.version as oldver,
260 array_to_string(array_agg(a.arch_string), ',') as oldarch,
261 bab2.version as newver
262 from bin_associations_binaries bab1
263 join bin_associations_binaries bab2
264 on bab1.package = bab2.package and bab1.version < bab2.version and
265 bab1.suite = bab2.suite and bab1.architecture > 2 and
266 bab2.architecture = 2
267 join architecture a on bab1.architecture = a.id
268 join suite s on bab1.suite = s.id
269 where s.suite_name = :suite_name
270 group by bab1.package, oldver, bab1.suite, newver"""
271 return session.execute(query, { 'suite_name': suite_name })
273 def reportNewerAll(suite_name, session):
274 rows = queryNewerAll(suite_name, session)
275 title = 'obsolete arch any packages in suite %s' % suite_name
276 if rows.rowcount > 0:
277 print '%s\n%s\n' % (title, '-' * len(title))
278 message = '"[auto-cruft] obsolete arch any package"'
280 (package, oldver, oldarch, newver) = row
281 print "* package %s is arch any in version %s but arch all in version %s" % \
282 (package, oldver, newver)
283 print " - suggested command:"
284 print " dak rm -m %s -s %s -a %s -p -b %s\n" % \
285 (message, suite_name, oldarch, package)
287 def queryNBS(suite_id, session):
288 """This one is really complex. It searches arch != all packages that
289 are no longer built from current source packages in suite.
291 temp table unique_binaries: will be populated with packages that
292 have only one version in suite because 'dak rm' does not allow
293 specifying version numbers
295 temp table newest_binaries: will be populated with packages that are
296 built from current sources
298 subquery uptodate_arch: returns all architectures built from current
301 subquery unique_binaries_uptodate_arch: returns all packages in
302 architectures from uptodate_arch
304 subquery unique_binaries_uptodate_arch_agg: same as
305 unique_binaries_uptodate_arch but with column architecture
308 subquery uptodate_packages: similar to uptodate_arch but returns all
309 packages built from current sources
311 subquery outdated_packages: returns all packages with architectures
312 no longer built from current source
316 create temp table unique_binaries (
317 package text not null,
318 architecture integer not null,
319 source integer not null);
321 insert into unique_binaries
322 select bab.package, bab.architecture, max(bab.source)
323 from bin_associations_binaries bab
324 where bab.suite = :suite_id and bab.architecture > 2
325 group by package, architecture having count(*) = 1;
327 create temp table newest_binaries (
328 package text not null,
329 architecture integer not null,
330 source text not null,
331 version debversion not null);
333 insert into newest_binaries
334 select ub.package, ub.architecture, nsa.source, nsa.version
335 from unique_binaries ub
336 join newest_src_association nsa
337 on ub.source = nsa.src and nsa.suite = :suite_id;
339 with uptodate_arch as
340 (select architecture, source, version
342 group by architecture, source, version),
343 unique_binaries_uptodate_arch as
344 (select ub.package, ub.architecture, ua.source, ua.version
345 from unique_binaries ub
348 join uptodate_arch ua
349 on ub.architecture = ua.architecture and s.source = ua.source),
350 unique_binaries_uptodate_arch_agg as
351 (select ubua.package,
352 array(select unnest(array_agg(a.arch_string)) order by 1) as arch_list,
353 ubua.source, ubua.version
354 from unique_binaries_uptodate_arch ubua
356 on ubua.architecture = a.id
357 group by ubua.source, ubua.version, ubua.package),
359 (select package, source, version
361 group by package, source, version),
363 (select array(select unnest(array_agg(package)) order by 1) as pkg_list,
364 arch_list, source, version
365 from unique_binaries_uptodate_arch_agg
367 (select package from uptodate_packages)
368 group by arch_list, source, version)
369 select * from outdated_packages order by source"""
370 return session.execute(query, { 'suite_id': suite_id })
372 def reportNBS(suite_name, suite_id, rdeps=False):
373 session = DBConn().session()
374 nbsRows = queryNBS(suite_id, session)
375 title = 'NBS packages in suite %s' % suite_name
376 if nbsRows.rowcount > 0:
377 print '%s\n%s\n' % (title, '-' * len(title))
379 (pkg_list, arch_list, source, version) = row
380 pkg_string = ' '.join(pkg_list)
381 arch_string = ','.join(arch_list)
382 print "* source package %s version %s no longer builds" % \
384 print " binary package(s): %s" % pkg_string
385 print " on %s" % arch_string
386 print " - suggested command:"
387 message = '"[auto-cruft] NBS (no longer built by %s)"' % source
388 print " dak rm -m %s -s %s -a %s -p -R -b %s" % \
389 (message, suite_name, arch_string, pkg_string)
391 if utils.check_reverse_depends(pkg_list, suite_name, arch_list, session, True):
394 print " - No dependency problem found\n"
399 def reportAllNBS(suite_name, suite_id, session, rdeps=False):
400 reportWithoutSource(suite_name, suite_id, session, rdeps)
401 reportNewerAll(suite_name, session)
402 reportNBS(suite_name, suite_id, rdeps)
404 ################################################################################
406 def do_dubious_nbs(dubious_nbs):
411 dubious_nbs_keys = dubious_nbs.keys()
412 dubious_nbs_keys.sort()
413 for source in dubious_nbs_keys:
414 print " * %s_%s builds: %s" % (source,
415 source_versions.get(source, "??"),
416 source_binaries.get(source, "(source does not exist)"))
417 print " won't admit to building:"
418 versions = dubious_nbs[source].keys()
419 versions.sort(apt_pkg.version_compare)
420 for version in versions:
421 packages = dubious_nbs[source][version].keys()
423 print " o %s: %s" % (version, ", ".join(packages))
427 ################################################################################
429 def obsolete_source(suite_name, session):
430 """returns obsolete source packages for suite_name without binaries
431 in the same suite sorted by install_date; install_date should help
432 detecting source only (or binary throw away) uploads; duplicates in
433 the suite are skipped
435 subquery 'source_suite_unique' returns source package names from
436 suite without duplicates; the rationale behind is that neither
437 cruft-report nor rm cannot handle duplicates (yet)"""
440 WITH source_suite_unique AS
441 (SELECT source, suite
442 FROM source_suite GROUP BY source, suite HAVING count(*) = 1)
443 SELECT ss.src, ss.source, ss.version,
444 to_char(ss.install_date, 'YYYY-MM-DD') AS install_date
446 JOIN source_suite_unique ssu
447 ON ss.source = ssu.source AND ss.suite = ssu.suite
448 JOIN suite s ON s.id = ss.suite
449 LEFT JOIN bin_associations_binaries bab
450 ON ss.src = bab.source AND ss.suite = bab.suite
451 WHERE s.suite_name = :suite_name AND bab.id IS NULL
452 ORDER BY install_date"""
453 args = { 'suite_name': suite_name }
454 return session.execute(query, args)
456 def source_bin(source, session):
457 """returns binaries built by source for all or no suite grouped and
458 ordered by package name"""
463 JOIN src_associations_src sas ON b.source = sas.src
464 WHERE sas.source = :source
466 ORDER BY b.package"""
467 args = { 'source': source }
468 return session.execute(query, args)
470 def newest_source_bab(suite_name, package, session):
471 """returns newest source that builds binary package in suite grouped
472 and sorted by source and package name"""
475 SELECT sas.source, MAX(sas.version) AS srcver
476 FROM src_associations_src sas
477 JOIN bin_associations_binaries bab ON sas.src = bab.source
478 JOIN suite s on s.id = bab.suite
479 WHERE s.suite_name = :suite_name AND bab.package = :package
480 GROUP BY sas.source, bab.package
481 ORDER BY sas.source, bab.package"""
482 args = { 'suite_name': suite_name, 'package': package }
483 return session.execute(query, args)
485 def report_obsolete_source(suite_name, session):
486 rows = obsolete_source(suite_name, session)
487 if rows.rowcount == 0:
490 """Obsolete source packages in suite %s
491 ----------------------------------%s\n""" % \
492 (suite_name, '-' * len(suite_name))
493 for os_row in rows.fetchall():
494 (src, old_source, version, install_date) = os_row
495 print " * obsolete source %s version %s installed at %s" % \
496 (old_source, version, install_date)
497 for sb_row in source_bin(old_source, session):
499 print " - has built binary %s" % package
500 for nsb_row in newest_source_bab(suite_name, package, session):
501 (new_source, srcver) = nsb_row
502 print " currently built by source %s version %s" % \
504 print " - suggested command:"
505 rm_opts = "-S -p -m \"[auto-cruft] obsolete source package\""
506 print " dak rm -s %s %s %s\n" % (suite_name, rm_opts, old_source)
508 def get_suite_binaries(suite, session):
509 # Initalize a large hash table of all binary packages
512 print "Getting a list of binary packages in %s..." % suite.suite_name
513 q = session.execute("""SELECT distinct b.package
514 FROM binaries b, bin_associations ba
515 WHERE ba.suite = :suiteid AND ba.bin = b.id""",
516 {'suiteid': suite.suite_id})
517 for i in q.fetchall():
522 ################################################################################
524 def report_outdated_nonfree(suite, session, rdeps=False):
527 query = """WITH outdated_sources AS (
528 SELECT s.source, s.version, s.id
530 JOIN src_associations sa ON sa.source = s.id
534 WHERE suite_name = :suite )
535 AND sa.created < (now() - interval :delay)
536 EXCEPT SELECT s.source, max(s.version) AS version, max(s.id)
538 JOIN src_associations sa ON sa.source = s.id
542 WHERE suite_name = :suite )
543 AND sa.created < (now() - interval :delay)
546 SELECT b.package, s.source, (
549 WHERE a.id = b.architecture ) AS arch
551 JOIN outdated_sources s ON s.id = b.source
552 JOIN bin_associations ba ON ba.bin = b.id
553 JOIN override o ON o.package = b.package AND o.suite = ba.suite
557 WHERE suite_name = :suite )
561 WHERE name = 'non-free' ) )
562 SELECT DISTINCT package, source, arch
564 ORDER BY source, package, arch"""
566 res = session.execute(query, {'suite': suite, 'delay': "'15 days'"})
573 if not source in packages:
574 packages[source] = {}
575 if not binary in packages[source]:
576 packages[source][binary] = set()
577 packages[source][binary].add(arch)
579 title = 'Outdated non-free binaries in suite %s' % suite
580 message = '"[auto-cruft] outdated non-free binaries"'
581 print '%s\n%s\n' % (title, '-' * len(title))
582 for source in sorted(packages):
585 print '* package %s has outdated non-free binaries' % source
586 print ' - suggested command:'
587 for binary in sorted(packages[source]):
589 archs = archs.union(packages[source][binary])
590 print ' dak rm -m %s -s %s -a %s -p -R -b %s' % \
591 (message, suite, ','.join(archs), ' '.join(binaries))
593 if utils.check_reverse_depends(list(binaries), suite, archs, session, True):
596 print " - No dependency problem found\n"
600 ################################################################################
603 global suite, suite_id, source_binaries, source_versions
607 Arguments = [('h',"help","Cruft-Report::Options::Help"),
608 ('m',"mode","Cruft-Report::Options::Mode", "HasArg"),
609 ('R',"rdep-check", "Cruft-Report::Options::Rdep-Check"),
610 ('s',"suite","Cruft-Report::Options::Suite","HasArg"),
611 ('w',"wanna-build-dump","Cruft-Report::Options::Wanna-Build-Dump","HasArg")]
612 for i in [ "help", "Rdep-Check" ]:
613 if not cnf.has_key("Cruft-Report::Options::%s" % (i)):
614 cnf["Cruft-Report::Options::%s" % (i)] = ""
616 cnf["Cruft-Report::Options::Suite"] = cnf.get("Dinstall::DefaultSuite", "unstable")
618 if not cnf.has_key("Cruft-Report::Options::Mode"):
619 cnf["Cruft-Report::Options::Mode"] = "daily"
621 if not cnf.has_key("Cruft-Report::Options::Wanna-Build-Dump"):
622 cnf["Cruft-Report::Options::Wanna-Build-Dump"] = "/srv/ftp-master.debian.org/scripts/nfu"
624 apt_pkg.parse_commandline(cnf.Cnf, Arguments, sys.argv)
626 Options = cnf.subtree("Cruft-Report::Options")
630 if Options["Rdep-Check"]:
635 # Set up checks based on mode
636 if Options["Mode"] == "daily":
637 checks = [ "nbs", "nviu", "nvit", "obsolete source", "outdated non-free", "nfu" ]
638 elif Options["Mode"] == "full":
639 checks = [ "nbs", "nviu", "nvit", "obsolete source", "outdated non-free", "nfu", "dubious nbs", "bnb", "bms", "anais" ]
640 elif Options["Mode"] == "bdo":
641 checks = [ "nbs", "obsolete source" ]
643 utils.warn("%s is not a recognised mode - only 'full', 'daily' or 'bdo' are understood." % (Options["Mode"]))
646 session = DBConn().session()
659 suite = get_suite(Options["Suite"].lower(), session)
661 utils.fubar("Cannot find suite %s" % Options["Suite"].lower())
663 suite_id = suite.suite_id
664 suite_name = suite.suite_name.lower()
666 if "obsolete source" in checks:
667 report_obsolete_source(suite_name, session)
670 reportAllNBS(suite_name, suite_id, session, rdeps)
672 if "outdated non-free" in checks:
673 report_outdated_nonfree(suite_name, session, rdeps)
678 bins_in_suite = get_suite_binaries(suite, session)
680 # Checks based on the Sources files
681 components = get_component_names(session)
682 for component in components:
683 filename = "%s/dists/%s/%s/source/Sources.gz" % (suite.archive.path, suite_name, component)
684 # apt_pkg.ParseTagFile needs a real file handle and can't handle a GzipFile instance...
685 (fd, temp_filename) = utils.temp_filename()
686 (result, output) = commands.getstatusoutput("gunzip -c %s > %s" % (filename, temp_filename))
688 sys.stderr.write("Gunzip invocation failed!\n%s\n" % (output))
690 sources = utils.open_file(temp_filename)
691 Sources = apt_pkg.ParseTagFile(sources)
692 while Sources.Step():
693 source = Sources.Section.Find('Package')
694 source_version = Sources.Section.Find('Version')
695 architecture = Sources.Section.Find('Architecture')
696 binaries = Sources.Section.Find('Binary')
697 binaries_list = [ i.strip() for i in binaries.split(',') ]
700 # Check for binaries not built on any architecture.
701 for binary in binaries_list:
702 if not bins_in_suite.has_key(binary):
703 bin_not_built.setdefault(source, {})
704 bin_not_built[source][binary] = ""
706 if "anais" in checks:
707 anais_output += do_anais(architecture, binaries_list, source, session)
709 # build indices for checking "no source" later
710 source_index = component + '/' + source
711 src_pkgs[source] = source_index
712 for binary in binaries_list:
713 bin_pkgs[binary] = source
714 source_binaries[source] = binaries
715 source_versions[source] = source_version
718 os.unlink(temp_filename)
720 # Checks based on the Packages files
721 check_components = components[:]
722 if suite_name != "experimental":
723 check_components.append('main/debian-installer');
725 for component in check_components:
726 architectures = [ a.arch_string for a in get_suite_architectures(suite_name,
727 skipsrc=True, skipall=True,
729 for architecture in architectures:
730 if component == 'main/debian-installer' and re.match("kfreebsd", architecture):
732 filename = "%s/dists/%s/%s/binary-%s/Packages.gz" % (suite.archive.path, suite_name, component, architecture)
733 # apt_pkg.ParseTagFile needs a real file handle
734 (fd, temp_filename) = utils.temp_filename()
735 (result, output) = commands.getstatusoutput("gunzip -c %s > %s" % (filename, temp_filename))
737 sys.stderr.write("Gunzip invocation failed!\n%s\n" % (output))
741 nfu_packages.setdefault(architecture,[])
742 nfu_entries = parse_nfu(architecture)
744 packages = utils.open_file(temp_filename)
745 Packages = apt_pkg.ParseTagFile(packages)
746 while Packages.Step():
747 package = Packages.Section.Find('Package')
748 source = Packages.Section.Find('Source', "")
749 version = Packages.Section.Find('Version')
752 if bin2source.has_key(package) and \
753 apt_pkg.version_compare(version, bin2source[package]["version"]) > 0:
754 bin2source[package]["version"] = version
755 bin2source[package]["source"] = source
757 bin2source[package] = {}
758 bin2source[package]["version"] = version
759 bin2source[package]["source"] = source
760 if source.find("(") != -1:
761 m = re_extract_src_version.match(source)
764 if not bin_pkgs.has_key(package):
765 nbs.setdefault(source,{})
766 nbs[source].setdefault(package, {})
767 nbs[source][package][version] = ""
770 if package in nfu_entries and \
771 version != source_versions[source]: # only suggest to remove out-of-date packages
772 nfu_packages[architecture].append((package,version,source_versions[source]))
775 os.unlink(temp_filename)
777 # Distinguish dubious (version numbers match) and 'real' NBS (they don't)
779 for source in nbs.keys():
780 for package in nbs[source].keys():
781 versions = nbs[source][package].keys()
782 versions.sort(apt_pkg.version_compare)
783 latest_version = versions.pop()
784 source_version = source_versions.get(source,"0")
785 if apt_pkg.version_compare(latest_version, source_version) == 0:
786 add_nbs(dubious_nbs, source, latest_version, package, suite_id, session)
789 do_newer_version('unstable', 'experimental', 'NVIU', session)
792 do_newer_version('testing', 'testing-proposed-updates', 'NVIT', session)
796 if Options["Mode"] == "full":
804 print "Unbuilt binary packages"
805 print "-----------------------"
807 keys = bin_not_built.keys()
810 binaries = bin_not_built[source].keys()
812 print " o %s: %s" % (source, ", ".join(binaries))
816 report_multiple_source(suite)
818 if "anais" in checks:
819 print "Architecture Not Allowed In Source"
820 print "----------------------------------"
824 if "dubious nbs" in checks:
825 do_dubious_nbs(dubious_nbs)
828 ################################################################################
830 if __name__ == '__main__':