X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-addtopackage;h=19db69baf815782966b84c7239aa1b17f5317489;hb=4df07927ce9cf9257c974c571a7e04d4fa7c2cbe;hp=f096ea2eaef6c6eb2c2b0a2ec20c8d2c2720e0f2;hpb=cd99bcfaa954c059bbae5fcaf89117fb493d91c7;p=zpackage diff --git a/zpm-addtopackage b/zpm-addtopackage index f096ea2..19db69b 100755 --- a/zpm-addtopackage +++ b/zpm-addtopackage @@ -39,12 +39,12 @@ else fi for path in $*; do - mtime=$(stat -c '%Y' $path) - uid=$(stat -c '%u' $path) - gid=$(stat -c '%g' $path) - username=$(stat -c '%U' $path) - groupname=$(stat -c '%G' $path) - mode=$(stat -c '%a' $path) + mtime=$(zpm stat -t '%y' $path) + uid=$(zpm stat -t '%u' $path) + gid=$(zpm stat -t '%g' $path) + username=$(zpm stat -t '%U' $path) + groupname=$(zpm stat -t '%G' $path) + mode=$(zpm stat -t '%a' $path) # strip off leading slashes rpath=$(echo "$path" | sed -e 's|^/*||')