3 [ -z "$1" ] && return 1
5 if PKGNAME
=`pacman -Q $1 2> /dev/null`; then
6 DIR
=`echo "$PKGNAME" | tr ' ' -`
7 test -d /var
/lib
/pacman
/local
/$DIR ||
exit 1
8 cat /var
/lib
/pacman
/local
/$DIR/files | \
11 %FILES
%|
"") continue;;
14 rmdir "/$file" > /dev
/null
2>&1
17 rm "/$file" > /dev
/null
2>&1
26 for i
in /var
/lib
/instpkg
/packages
/*; do
30 find -mindepth 1 |
cpio -pdu --make-directories /
33 find -mindepth 1 |
sort |
sed 's%^\./%%' | \
35 [ -d "/$file" ] && echo "/$file/" >> $i/.files ||
echo "/$file" >> $i/.files