X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-add;h=f627c6dc6990578a0a9a290d87b45761dddfbc78;hb=dc4fb2639d082e50fd3d3a00f2a46cca4af815b5;hp=28c12f96fef2cd82f6af30b67e79a227f689b788;hpb=903da5cc8edf74516b98027fb67a25eb407c2f4d;p=zpackage diff --git a/zpm-add b/zpm-add index 28c12f9..f627c6d 100755 --- a/zpm-add +++ b/zpm-add @@ -125,12 +125,15 @@ pkgrel=$(zpm quote "$release") #strip=$(cleanpath "$strip") for path in $*; do #echo adding $path +if [ $verbose -gt 1 ]; then + printf "adding %s\n" $path +fi # only stat the file for items not set on the command line - mode=${clmode:-$(zpm stat -f '%a' $path)} - username=${cluser:-$(zpm stat -f '%U' $path)} - groupname=${clgroup:-$(zpm stat -f '%G' $path)} - mtime=${clmtime:-$(zpm stat -f '%y' $path)} + mode=${clmode:-$(zpm stat -l -f '%a' $path)} + username=${cluser:-$(zpm stat -l -f '%U' $path)} + groupname=${clgroup:-$(zpm stat -l -f '%G' $path)} + mtime=${clmtime:-$(zpm stat -l -f '%y' $path)} filetype=${cltype:-$(zpm stat -l -f '%t' "$path")} rpath="$path" @@ -199,8 +202,12 @@ for path in $*; do # TODO check that we have such a package,version,release #cat <