X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-add;h=2b4dda692f822361ccc032aef314d7156404a724;hb=b7a4dd34227b6cf84908ffde9f2c4395f29fe1b4;hp=5d84d543e294323aa73305bcbaf9b958648e31ca;hpb=c0c274bfcf9710c279c8438e55f33ebeed3a3f9b;p=zpackage diff --git a/zpm-add b/zpm-add index 5d84d54..2b4dda6 100755 --- a/zpm-add +++ b/zpm-add @@ -35,6 +35,7 @@ isconfig=0 # option for "multipackage" just to let the system know that's what you meant # option to take filenames from stdin # parse package, version, release from file if not given +# TODO -l follow symlinks, -L follow symlinks, adding all, links and targets while getopts :f:vr:l:P:S:cu:g: opt; do case $opt in f) pkgfile="$OPTARG" ;; @@ -142,7 +143,7 @@ for path in $*; do rpath="$prefix/$rpath" fi - filetype=$(zpm stat -f '%t' "$path") + filetype=$(zpm stat -l -f '%t' "$path") hash='NULL' target='NULL' case "$filetype" in @@ -175,5 +176,8 @@ commit; EOS #printf "%s %s%s\n" $path $rpath ${target:+" -> $target"} -printf "%s\n" $path +if [ $verbose -gt 0 ]; then + printf "%s\n" $path +fi + done