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

Message ID 20181204213202.18755-3-apw@canonical.com
State New
Headers show
Series
  • [disco/master-next,1/2] UBUNTU: [Packaging] getabis -- handle all known package combinations
Related show

Commit Message

Andy Whitcroft Dec. 4, 2018, 9:32 p.m. UTC
BugLink: http://bugs.launchpad.net/bugs/1806380
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/scripts/misc/getabis | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

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