From 5123bc23172ae408c5500ae8dccf079f0b113457 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Wed, 9 Sep 2015 18:22:08 +0200 Subject: [PATCH] Remove the now unused RCONFLICTS field Signed-off-by: Niels Thykier --- britney.py | 3 +-- britney_util.py | 19 ++----------------- consts.py | 3 +-- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/britney.py b/britney.py index 5884817..eda9fbe 100755 --- a/britney.py +++ b/britney.py @@ -208,7 +208,7 @@ from britney_util import (old_libraries_format, same_source, undo_changes, clone_nuninst) from consts import (VERSION, SECTION, BINARIES, MAINTAINER, FAKESRC, SOURCE, SOURCEVER, ARCHITECTURE, DEPENDS, CONFLICTS, - PROVIDES, RDEPENDS, RCONFLICTS, MULTIARCH, ESSENTIAL) + PROVIDES, RDEPENDS, MULTIARCH, ESSENTIAL) __author__ = 'Fabio Tranchitella and the Debian Release Team' __version__ = '2.0' @@ -673,7 +673,6 @@ class Britney(object): ', '.join(final_conflicts_list) or None, get_field('Provides'), [], - [], ess, ] diff --git a/britney_util.py b/britney_util.py index 3103bdb..ad1dbe9 100644 --- a/britney_util.py +++ b/britney_util.py @@ -33,7 +33,7 @@ import yaml from migrationitem import MigrationItem, UnversionnedMigrationItem from consts import (VERSION, BINARIES, PROVIDES, DEPENDS, CONFLICTS, - RDEPENDS, RCONFLICTS, ARCHITECTURE, SECTION, + RDEPENDS, ARCHITECTURE, SECTION, SOURCE, SOURCEVER, MAINTAINER, MULTIARCH, ESSENTIAL) @@ -204,8 +204,7 @@ def old_libraries_format(libs): def register_reverses(packages, provides, check_doubles=True, iterator=None, parse_depends=apt_pkg.parse_depends, - DEPENDS=DEPENDS, CONFLICTS=CONFLICTS, - RDEPENDS=RDEPENDS, RCONFLICTS=RCONFLICTS): + DEPENDS=DEPENDS, RDEPENDS=RDEPENDS): """Register reverse dependencies and conflicts for a given sequence of packages @@ -243,20 +242,6 @@ def register_reverses(packages, provides, check_doubles=True, iterator=None, if i not in packages: continue if not check_doubles or pkg not in packages[i][RDEPENDS]: 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): diff --git a/consts.py b/consts.py index c72bb8b..3353520 100644 --- a/consts.py +++ b/consts.py @@ -34,5 +34,4 @@ DEPENDS = 6 CONFLICTS = 7 PROVIDES = 8 RDEPENDS = 9 -RCONFLICTS = 10 -ESSENTIAL = 11 +ESSENTIAL = 10