From: Luca Falavigna Date: Mon, 22 Aug 2011 14:49:02 +0000 (+0000) Subject: rm.py: ignore binNMU versions X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=eb9ead16c49c79cf229d786bb4bc156782d7688d;p=dak.git rm.py: ignore binNMU versions dak rm sometimes complains when closing bugs for packages with multiple package versions. Most of the times this is due to binNMUs, so don't consider their versions. Signed-off-by: Luca Falavigna --- diff --git a/dak/rm.py b/dak/rm.py index 0a07ce6f..d0b46f62 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -51,7 +51,7 @@ from daklib.config import Config from daklib.dbconn import * from daklib import utils from daklib.dak_exceptions import * -from daklib.regexes import re_strip_source_version, re_build_dep_arch +from daklib.regexes import re_strip_source_version, re_build_dep_arch, re_bin_only_nmu import debianbts as bts ################################################################################ @@ -666,6 +666,7 @@ def main (): Subst_close_other = Subst_common bcc = [] wnpp = utils.parse_wnpp_bug_file() + versions = list(set([re_bin_only_nmu.sub('', v) for v in versions])) if len(versions) == 1: Subst_close_other["__VERSION__"] = versions[0] else: