|
|
@ -181,25 +181,26 @@ does for the generation of the update excuses.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import optparse
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
import optparse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import apt_pkg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from collections import defaultdict, namedtuple
|
|
|
|
from collections import defaultdict, namedtuple
|
|
|
|
from functools import reduce
|
|
|
|
from functools import reduce
|
|
|
|
from itertools import product
|
|
|
|
from itertools import product
|
|
|
|
from operator import attrgetter
|
|
|
|
from operator import attrgetter
|
|
|
|
|
|
|
|
|
|
|
|
from urllib.parse import quote
|
|
|
|
from urllib.parse import quote
|
|
|
|
|
|
|
|
|
|
|
|
from installability.builder import InstallabilityTesterBuilder
|
|
|
|
import apt_pkg
|
|
|
|
from excuse import Excuse
|
|
|
|
|
|
|
|
from migrationitem import MigrationItem
|
|
|
|
# Check the "check_field_name" reflection before removing an import here.
|
|
|
|
from hints import HintParser
|
|
|
|
from britney2.consts import (SOURCE, SOURCEVER, ARCHITECTURE, CONFLICTS, DEPENDS, PROVIDES, MULTIARCH)
|
|
|
|
from britney_util import (old_libraries_format, undo_changes,
|
|
|
|
from britney2.excuse import Excuse
|
|
|
|
|
|
|
|
from britney2.hints import HintParser
|
|
|
|
|
|
|
|
from britney2.installability.builder import InstallabilityTesterBuilder
|
|
|
|
|
|
|
|
from britney2.migrationitem import MigrationItem
|
|
|
|
|
|
|
|
from britney2.policies.policy import AgePolicy, RCBugPolicy, PolicyVerdict
|
|
|
|
|
|
|
|
from britney2.utils import (old_libraries_format, undo_changes,
|
|
|
|
compute_reverse_tree, possibly_compressed,
|
|
|
|
compute_reverse_tree, possibly_compressed,
|
|
|
|
read_nuninst, write_nuninst, write_heidi,
|
|
|
|
read_nuninst, write_nuninst, write_heidi,
|
|
|
|
eval_uninst, newly_uninst, make_migrationitem,
|
|
|
|
eval_uninst, newly_uninst, make_migrationitem,
|
|
|
@ -208,11 +209,6 @@ from britney_util import (old_libraries_format, undo_changes,
|
|
|
|
clone_nuninst, check_installability,
|
|
|
|
clone_nuninst, check_installability,
|
|
|
|
create_provides_map,
|
|
|
|
create_provides_map,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
from policies.policy import AgePolicy, RCBugPolicy, PolicyVerdict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check the "check_field_name" reflection before removing an import here.
|
|
|
|
|
|
|
|
from consts import (SOURCE, SOURCEVER, ARCHITECTURE, CONFLICTS, DEPENDS,
|
|
|
|
|
|
|
|
PROVIDES, MULTIARCH)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__author__ = 'Fabio Tranchitella and the Debian Release Team'
|
|
|
|
__author__ = 'Fabio Tranchitella and the Debian Release Team'
|
|
|
|
__version__ = '2.0'
|
|
|
|
__version__ = '2.0'
|
|
|
@ -2778,7 +2774,7 @@ class Britney(object):
|
|
|
|
self.nuninst_orig_save = self.get_nuninst()
|
|
|
|
self.nuninst_orig_save = self.get_nuninst()
|
|
|
|
|
|
|
|
|
|
|
|
import readline
|
|
|
|
import readline
|
|
|
|
from completer import Completer
|
|
|
|
from britney2.completer import Completer
|
|
|
|
|
|
|
|
|
|
|
|
histfile = os.path.expanduser('~/.britney2_history')
|
|
|
|
histfile = os.path.expanduser('~/.britney2_history')
|
|
|
|
if os.path.exists(histfile):
|
|
|
|
if os.path.exists(histfile):
|
|
|
|