X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-add;h=cfce783c2f3cebd10a7066b192fe0a2729f2383f;hb=9e0744460ead27a2fad41a32f48d6b6c97af6e6e;hp=119b29bd9b288cc43dab747ab1f1cc7f18bc43ab;hpb=245dd8642c756cff3585c5018a442f3937521595;p=zpackage diff --git a/zpm-add b/zpm-add index 119b29b..cfce783 100755 --- a/zpm-add +++ b/zpm-add @@ -137,7 +137,6 @@ for path in $*; do fi if [ ! -z "$strip" ]; then - echo "stripping $strip" rpath=${rpath#$strip} rpath=${rpath#/} fi @@ -151,6 +150,9 @@ for path in $*; do rpath="$prefix/$rpath" fi + # ensure all paths are absolute + rpath=/${rpath#/} + filetype=$(zpm stat -l -f '%t' "$path") hash='NULL' target='NULL'