[disco/master-next 2/2] UBUNTU: [Packaging] getabis -- support parsing a simple version

Andy Whitcroft apw at canonical.com
Tue Dec 4 21:32:02 UTC 2018


BugLink: http://bugs.launchpad.net/bugs/1806380
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 debian/scripts/misc/getabis | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index edba4b078867..24e19d94c1ff 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -2,7 +2,11 @@
 
 export LC_ALL=C.UTF-8
 
+if [ "$#" = "1" ]; then
+	set - $(echo "$1" | sed -e 's/-/ /')
+fi
 if [ "$#" != "2" ]; then
+	echo "Usage: $0 <version>" 1>&2
 	echo "Usage: $0 <release> <revision>" 1>&2
 	exit 1
 fi
-- 
2.19.1




More information about the kernel-team mailing list