From eb9ead16c49c79cf229d786bb4bc156782d7688d Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Mon, 22 Aug 2011 14:49:02 +0000 Subject: [PATCH] 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 --- dak/rm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.39.5