|
|
@ -33,7 +33,7 @@ import yaml
|
|
|
|
from migrationitem import MigrationItem, UnversionnedMigrationItem
|
|
|
|
from migrationitem import MigrationItem, UnversionnedMigrationItem
|
|
|
|
|
|
|
|
|
|
|
|
from consts import (VERSION, BINARIES, PROVIDES, DEPENDS, CONFLICTS,
|
|
|
|
from consts import (VERSION, BINARIES, PROVIDES, DEPENDS, CONFLICTS,
|
|
|
|
RDEPENDS, RCONFLICTS, ARCHITECTURE, SECTION,
|
|
|
|
RDEPENDS, ARCHITECTURE, SECTION,
|
|
|
|
SOURCE, SOURCEVER, MAINTAINER, MULTIARCH,
|
|
|
|
SOURCE, SOURCEVER, MAINTAINER, MULTIARCH,
|
|
|
|
ESSENTIAL)
|
|
|
|
ESSENTIAL)
|
|
|
|
|
|
|
|
|
|
|
@ -204,8 +204,7 @@ def old_libraries_format(libs):
|
|
|
|
|
|
|
|
|
|
|
|
def register_reverses(packages, provides, check_doubles=True, iterator=None,
|
|
|
|
def register_reverses(packages, provides, check_doubles=True, iterator=None,
|
|
|
|
parse_depends=apt_pkg.parse_depends,
|
|
|
|
parse_depends=apt_pkg.parse_depends,
|
|
|
|
DEPENDS=DEPENDS, CONFLICTS=CONFLICTS,
|
|
|
|
DEPENDS=DEPENDS, RDEPENDS=RDEPENDS):
|
|
|
|
RDEPENDS=RDEPENDS, RCONFLICTS=RCONFLICTS):
|
|
|
|
|
|
|
|
"""Register reverse dependencies and conflicts for a given
|
|
|
|
"""Register reverse dependencies and conflicts for a given
|
|
|
|
sequence of packages
|
|
|
|
sequence of packages
|
|
|
|
|
|
|
|
|
|
|
@ -243,20 +242,6 @@ def register_reverses(packages, provides, check_doubles=True, iterator=None,
|
|
|
|
if i not in packages: continue
|
|
|
|
if i not in packages: continue
|
|
|
|
if not check_doubles or pkg not in packages[i][RDEPENDS]:
|
|
|
|
if not check_doubles or pkg not in packages[i][RDEPENDS]:
|
|
|
|
packages[i][RDEPENDS].append(pkg)
|
|
|
|
packages[i][RDEPENDS].append(pkg)
|
|
|
|
# register the list of the conflicts for the conflicting packages
|
|
|
|
|
|
|
|
if pkg_data[CONFLICTS]:
|
|
|
|
|
|
|
|
for p in parse_depends(pkg_data[CONFLICTS], False):
|
|
|
|
|
|
|
|
for a in p:
|
|
|
|
|
|
|
|
con = a[0]
|
|
|
|
|
|
|
|
# register real packages
|
|
|
|
|
|
|
|
if con in packages and (not check_doubles or pkg not in packages[con][RCONFLICTS]):
|
|
|
|
|
|
|
|
packages[con][RCONFLICTS].append(pkg)
|
|
|
|
|
|
|
|
# also register packages which provide the package (if any)
|
|
|
|
|
|
|
|
if con in provides:
|
|
|
|
|
|
|
|
for i in provides[con]:
|
|
|
|
|
|
|
|
if i not in packages: continue
|
|
|
|
|
|
|
|
if not check_doubles or pkg not in packages[i][RCONFLICTS]:
|
|
|
|
|
|
|
|
packages[i][RCONFLICTS].append(pkg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def compute_reverse_tree(inst_tester, affected):
|
|
|
|
def compute_reverse_tree(inst_tester, affected):
|
|
|
|