mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-23 08:21:30 +00:00
Support doing migration-less runs
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
189edf42ec
commit
5021053db5
@ -409,6 +409,10 @@ class Britney(object):
|
|||||||
help="just print a summary of uninstallable packages")
|
help="just print a summary of uninstallable packages")
|
||||||
parser.add_option("", "--components", action="store", dest="components",
|
parser.add_option("", "--components", action="store", dest="components",
|
||||||
help="Sources/Packages are laid out by components listed (, sep)")
|
help="Sources/Packages are laid out by components listed (, sep)")
|
||||||
|
parser.add_option("", "--compute-migrations", action="store_true", dest="compute_migrations", default=True,
|
||||||
|
help="Compute which packages can migrate (the default)")
|
||||||
|
parser.add_option("", "--no-compute-migrations", action="store_false", dest="compute_migrations",
|
||||||
|
help="Do not compute which packages can migrate.")
|
||||||
(self.options, self.args) = parser.parse_args()
|
(self.options, self.args) = parser.parse_args()
|
||||||
|
|
||||||
# integrity checks
|
# integrity checks
|
||||||
@ -2736,6 +2740,7 @@ class Britney(object):
|
|||||||
else:
|
else:
|
||||||
self.upgrade_me = self.options.actions.split()
|
self.upgrade_me = self.options.actions.split()
|
||||||
|
|
||||||
|
if self.options.compute_migrations or self.options.hint_tester:
|
||||||
with open(self.options.upgrade_output, 'w', encoding='utf-8') as f:
|
with open(self.options.upgrade_output, 'w', encoding='utf-8') as f:
|
||||||
self.__output = f
|
self.__output = f
|
||||||
|
|
||||||
@ -2749,6 +2754,8 @@ class Britney(object):
|
|||||||
self.log('> Stats from the installability tester', type="I")
|
self.log('> Stats from the installability tester', type="I")
|
||||||
for stat in self._inst_tester.stats.stats():
|
for stat in self._inst_tester.stats.stats():
|
||||||
self.log('> %s' % stat, type="I")
|
self.log('> %s' % stat, type="I")
|
||||||
|
else:
|
||||||
|
self.log('Migration computation skipped as requested.', type='I')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user