[PATCH] new_security_install: fix ACCEPT file name for binNMUs
Bug#827097
Signed-off-by: Julien Cristau <jcristau@debian.org>
---
dak/new_security_install.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dak/new_security_install.py b/dak/new_security_install.py
index 7d4603d..d37127d 100755
--- a/dak/new_security_install.py
+++ b/dak/new_security_install.py
@@ -174,7 +174,9 @@ def main():
# strip epoch from version
version=dbchange.version
version=version[(version.find(':')+1):]
- acceptfilename="%s/COMMENTS/ACCEPT.%s_%s" % (os.path.dirname(os.path.abspath(changes[0])), dbchange.source, version)
+ # strip possible version from source (binNMUs)
+ source = dbchange.source.split(None, 1)[0]
+ acceptfilename="%s/COMMENTS/ACCEPT.%s_%s" % (os.path.dirname(os.path.abspath(changes[0])), source, version)
acceptfiles[acceptfilename]=1
print "Would create %s now and then go on to accept this package, if you allow me to." % (acceptfiles.keys())
--
2.9.3
Reply to: