mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 15:37:02 +00:00
Merge trunk up to first commit from 2013-11-27
This commit is contained in:
commit
3290b4cccf
42
britney.py
42
britney.py
@ -265,29 +265,8 @@ class Britney(object):
|
||||
self.sources = {}
|
||||
self.binaries = {}
|
||||
|
||||
# if requested, build the non-installable status and save it
|
||||
# if this or the population of self.binaries below takes a very
|
||||
# long time, try increasing SIZEOFHASHMAP in lib/dpkg.c and rebuilding
|
||||
if not self.options.nuninst_cache:
|
||||
self.__log("Building the list of non-installable packages for the full archive", type="I")
|
||||
self.sources['testing'] = self.read_sources(self.options.testing)
|
||||
self.binaries['testing'] = {}
|
||||
nuninst = {}
|
||||
for arch in self.options.architectures:
|
||||
self.binaries['testing'][arch] = self.read_binaries(self.options.testing, "testing", arch)
|
||||
self.build_systems(arch)
|
||||
self.__log("> Checking for non-installable packages for architecture %s" % arch, type="I")
|
||||
result = self.get_nuninst(arch, build=True)
|
||||
nuninst.update(result)
|
||||
self.__log("> Found %d non-installable packages" % len(nuninst[arch]), type="I")
|
||||
if self.options.print_uninst:
|
||||
self.nuninst_arch_report(nuninst, arch)
|
||||
if not self.options.print_uninst:
|
||||
write_nuninst(self.options.noninst_status, nuninst)
|
||||
else:
|
||||
if self.options.nuninst_cache:
|
||||
self.__log("Not building the list of non-installable packages, as requested", type="I")
|
||||
|
||||
# if running in --print-uninst mode, quit here
|
||||
if self.options.print_uninst:
|
||||
print '* summary'
|
||||
print '\n'.join(map(lambda x: '%4d %s' % (len(nuninst[x]), x), self.options.architectures))
|
||||
@ -330,6 +309,24 @@ class Britney(object):
|
||||
# build the testing system
|
||||
self.build_systems(arch)
|
||||
|
||||
if not self.options.nuninst_cache:
|
||||
self.__log("Building the list of non-installable packages for the full archive", type="I")
|
||||
nuninst = {}
|
||||
for arch in self.options.architectures:
|
||||
self.__log("> Checking for non-installable packages for architecture %s" % arch, type="I")
|
||||
result = self.get_nuninst(arch, build=True)
|
||||
nuninst.update(result)
|
||||
self.__log("> Found %d non-installable packages" % len(nuninst[arch]), type="I")
|
||||
if self.options.print_uninst:
|
||||
self.nuninst_arch_report(nuninst, arch)
|
||||
|
||||
if self.options.print_uninst:
|
||||
print '* summary'
|
||||
print '\n'.join(map(lambda x: '%4d %s' % (len(nuninst[x]), x), self.options.architectures))
|
||||
return
|
||||
else:
|
||||
write_nuninst(self.options.noninst_status, nuninst)
|
||||
|
||||
# read the release-critical bug summaries for testing and unstable
|
||||
self.bugs = {'unstable': self.read_bugs(self.options.unstable),
|
||||
'testing': self.read_bugs(self.options.testing),}
|
||||
@ -2485,7 +2482,6 @@ class Britney(object):
|
||||
self.output_write("\n")
|
||||
|
||||
|
||||
|
||||
def upgrade_testing(self):
|
||||
"""Upgrade testing using the unstable packages
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user