[kernel-team] 11/47: Handle bugs with source packages of '', 'linux-2.6.24', etc.
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Dec 21 00:30:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository kernel-team.
commit 104678f3f4419479e0dcc9080a9aed31f74c4b79
Author: Ben Hutchings <benh at debian.org>
Date: Sat May 19 15:31:36 2012 +0000
Handle bugs with source packages of '', 'linux-2.6.24', etc.
svn path=/people/benh/; revision=19011
---
scripts/benh/bts-reassign-to-linux-2.6 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/benh/bts-reassign-to-linux-2.6 b/scripts/benh/bts-reassign-to-linux-2.6
index 8149ff4..f2904fc 100755
--- a/scripts/benh/bts-reassign-to-linux-2.6
+++ b/scripts/benh/bts-reassign-to-linux-2.6
@@ -52,7 +52,8 @@ class BtsError(EnvironmentError):
pass
def reassign(txn, report):
- if report.source == 'linux-2.6':
+ if (report.source.startswith('linux-2.6') or
+ (report.source == '' and report.package.startswith('linux-image-'))):
if report.found_versions:
txn.reassign(report.bug_num, 'linux-2.6', report.found_versions[0])
else:
@@ -75,7 +76,7 @@ def reassign(txn, report):
else:
txn.reassign(report.bug_num, 'linux-2.6')
else:
- raise ValueError('source package for report %d is %s'
+ raise ValueError('source package for report %d is "%s"'
% (report.bug_num, report.source))
def reassign_numbered(nn):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git
More information about the Kernel-svn-changes
mailing list