[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Fix versionregex conversion



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 scripts/debian/byhand-di |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di
index 99cb313..f8e5f6b 100755
--- a/scripts/debian/byhand-di
+++ b/scripts/debian/byhand-di
@@ -54,7 +54,8 @@ if [ -d "$TARGET/$VERSION" ]; then
 fi
 
 # We know the VERSION is sane by here, we just need to make sure we escape the + in +b1 (if any)
-VERSIONREGEXP="$(echo $VERSION | sed 's@+@\\\+@')"
+# It needs 'g' as well as we may have +$DIST+b[0-9]
+VERSIONREGEXP="$(echo $VERSION | sed 's@+@\\\+@g')"
 
 # We know all data to be in ./installer-<arch>/<version>; see if there's
 # anything else in the tarball except that and the 'current' symlink
-- 
1.7.2.5


Reply to: