pkg="$1"
shift
+ZPMPKGFILE=$pkgfile
+export ZPMPKGFILE
+
set -e
for path in $*; do
+ echo installing $path from $pkg
+ set -x
fhash=$(zpm pkgfileinfo hash $path)
mode=$(zpm pkgfileinfo mode $path)
+ ftype=$(zpm pkgfileinfo filetype $path)
owner=$(zpm pkgfileinfo username $path)
group=$(zpm pkgfileinfo groupname $path)
- ftype=$(zpm pkgfileinfo filetype $path)
+
name=$(basename -- $path)
+ dir=$(dirname -- $path)
if [ "$pkgroot" != '/' ]; then
- dir=$pkgroot/$(dirname -- $path)
+ dir=$pkgroot/$dir
dir=${dir%/.}
if [ "$dir" = "//" ]; then dir=/ ; fi
- else
- dir=''
fi
tmppath=$dir/.installing.$name