[packages/adapter: 310/631] - i never remember in which package is getopt so added info about that

glen glen at pld-linux.org
Mon Sep 12 20:00:26 CEST 2016


commit 6668d124541c07c79c170e6120ecbe79299d5dba
Author: Sławomir Paszkiewicz <paszczus at pld-linux.org>
Date:   Sat Apr 1 23:25:31 2006 +0000

    - i never remember in which package is getopt so added info about that
    
    Changed files:
        adapter.sh -> 1.14

 adapter.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/adapter.sh b/adapter.sh
index b6783ca..44fe4bb 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -28,7 +28,10 @@ usage="Usage: $self [FLAGS] SPECFILE
 	skip %defattr corrections
 
 "
-
+if [ ! -x /usr/bin/getopt ]; then
+echo "You need to install util-linux to use adapter"
+exit 0
+fi
 t=`getopt -o hsmda --long help,sort,sort-br,no-macros,skip-macros,skip-desc,skip-defattr -n "$self" -- "$@"` || exit $?
 eval set -- "$t"
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list