[devscripts] 01/02: Add support for finalized .buildinfo format 1.0
James McCoy
jamessan at debian.org
Wed Mar 1 02:16:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit 51b5e50ed352f1756c73a18bebce33513e75d795
Author: Guillem Jover <guillem at debian.org>
Date: Tue Feb 28 00:13:52 2017 +0100
Add support for finalized .buildinfo format 1.0
Signed-off-by: James McCoy <jamessan at debian.org>
---
scripts/debsign.sh | 2 +-
scripts/dscverify.pl | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/debsign.sh b/scripts/debsign.sh
index 4b2b22c..2eb23df 100755
--- a/scripts/debsign.sh
+++ b/scripts/debsign.sh
@@ -462,7 +462,7 @@ fixup_control() {
}
fixup_buildinfo() {
- fixup_control '$major != 0 or $minor > 2' dsc buildinfo "$@"
+ fixup_control '($major != 0 or $minor > 2) and ($major != 1 or $minor > 0)' dsc buildinfo "$@"
}
fixup_changes() {
diff --git a/scripts/dscverify.pl b/scripts/dscverify.pl
index 381ebff..45f2c60 100755
--- a/scripts/dscverify.pl
+++ b/scripts/dscverify.pl
@@ -208,7 +208,8 @@ sub process_file {
$major += 0;
$minor += 0;
if ($file =~ /\.changes$/ and ($major != 1 or $minor > 8) or
- $file =~ /\.buildinfo$/ and ($major != 0 or $minor > 2)) {
+ $file =~ /\.buildinfo$/ and (($major != 0 or $minor > 2) and
+ ($major != 1 or $minor > 0))) {
xwarn "$file is an unsupported format: $format\n";
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list