[devscripts] 01/01: test_uscan_mangle: Fix failure on Rasbian

Osamu Aoki osamu at moszumanska.debian.org
Sun Mar 6 02:10:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

osamu pushed a commit to branch master
in repository devscripts.

commit 5306655c7b87ab5e6c0fb808ab4be2e84b1239d5
Author: Osamu Aoki <osamu at debian.org>
Date:   Sun Mar 6 11:04:30 2016 +0900

    test_uscan_mangle: Fix failure on Rasbian
---
 test/test_uscan_mangle | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/test_uscan_mangle b/test/test_uscan_mangle
index 94a69bc..6ac46ca 100755
--- a/test/test_uscan_mangle
+++ b/test/test_uscan_mangle
@@ -77,10 +77,10 @@ oneTimeSetUp () {
 # Initial Debian revision value is distribution dependent
 SUFFIX="1"
 if which dpkg-vendor >/dev/null 2>&1; then
-    case "$(dpkg-vendor --query Vendor 2>/dev/null)" in
-	"Ubuntu")
-	    SUFFIX="0ubuntu1"
-	    ;;
+    VENDER="$(dpkg-vendor --query Vendor 2>/dev/null|tr 'A-Z' 'a-z')"
+    case "$VENDER" in
+	debian) SUFFIX="1" ;;
+	*) SUFFIX="0${VENDER}1" ;;
     esac
 fi
 

-- 
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