Hi, Version numbers such as 2.3.4-1~exp1 where incorrectly parsed as being entire upstream version. This patch fixes it. Cheers, Simon
From 57036e390e528385b7a9c27b0b1247d4811f74bb Mon Sep 17 00:00:00 2001
From: Simon Chopin <chopin.simon@gmail.com>
Date: Sun, 31 Mar 2013 13:02:04 +0200
Subject: [PATCH] Fix Debian version regexp when updating upstream version
The previous regexp was too restrictive, only allowing for digits and
full stops where the policy allows for alphanumerics, '.', '+' and '~'
---
scripts/update-upstream-status | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/update-upstream-status b/scripts/update-upstream-status
index dc9706a..22a0e5c 100755
--- a/scripts/update-upstream-status
+++ b/scripts/update-upstream-status
@@ -112,7 +112,7 @@ end
def get_status(source, version, watch_file)
# strip debian revision
- version = version.gsub(/-[\d.]+$/,'')
+ version = version.gsub(/-[\da-zA-Z.~+]+$/,'')
# strip epoch
version = version.gsub(/^[\d]+:/,'')
f = `mktemp /dev/shm/watch.#{source}.XXXXXX`.chomp
--
1.7.10.4
Attachment:
signature.asc
Description: signature