1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-17 06:45:05 -05:00

contrib/bacman: fix checking if file has been added

Fixes FS#17140.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
(cherry picked from commit 0199a7ee71)

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-11-15 20:24:24 +10:00 committed by Dan McGee
parent a12ed63545
commit 0c3f502064

View File

@ -21,7 +21,7 @@
# #
readonly progname="bacman" readonly progname="bacman"
readonly progver="0.2.0" readonly progver="0.2.1"
# #
# User Friendliness # User Friendliness
@ -137,7 +137,7 @@ while read i; do
bsdtar -cnf - "/$i" 2> /dev/null | bsdtar -xpf - bsdtar -cnf - "/$i" 2> /dev/null | bsdtar -xpf -
# Workaround to bsdtar not reporting a missing file as an error # Workaround to bsdtar not reporting a missing file as an error
if [ ! -e "$work_dir/$i" ] && [ -L "$work_dir/$i"]; then if [ ! -e "$work_dir/$i" -a ! -L "$work_dir/$i" ]; then
echo "" echo ""
echo "ERROR: unable to add /$i to the package" echo "ERROR: unable to add /$i to the package"
echo " If your user does not have permssion to read this file then" echo " If your user does not have permssion to read this file then"