]> pd.if.org Git - zpackage/commitdiff
echo missing option
authorNathan Wagner <nw@hydaspes.if.org>
Tue, 10 Apr 2018 07:07:46 +0000 (02:07 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Tue, 10 Apr 2018 07:10:14 +0000 (02:10 -0500)
zpm-addtopackage

index 81c1bcb5b1cbc9fe7f8417de6bd4e54cd238b672..aca92eaf8bed8eece96df30d450a22b4a111447d 100755 (executable)
@@ -42,7 +42,7 @@ while getopts :f:v:r:l:P:S:Cc opt; do
                t) tags="$tags $OPTARG" ;;
                c) tags="$tags configuration" ;;
                C) create=1 ;;
-               *) echo 'unknown option'; exit 1 ;;
+               *) echo 'unknown option' $opt; exit 1 ;;
        esac
 done
 shift $((OPTIND - 1))
@@ -73,7 +73,7 @@ zpm test -v $pkgfile
 
 #strip=$(cleanpath "$strip")
 for path in $*; do
-       echo adding $path
+       #echo adding $path
        mtime=$(zpm stat -f '%y' $path)
        uid=$(zpm stat -f '%u' $path)
        gid=$(zpm stat -f '%g' $path)
@@ -128,6 +128,7 @@ for path in $*; do
                        ;;
        esac
 
+       # TODO check that we have such a package,version,release
        zpm shell $pkgfile <<EOS
 PRAGMA foreign_keys = ON;
 begin;