mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -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:
parent
a12ed63545
commit
0c3f502064
@ -21,7 +21,7 @@
|
||||
#
|
||||
|
||||
readonly progname="bacman"
|
||||
readonly progver="0.2.0"
|
||||
readonly progver="0.2.1"
|
||||
|
||||
#
|
||||
# User Friendliness
|
||||
@ -137,7 +137,7 @@ while read i; do
|
||||
bsdtar -cnf - "/$i" 2> /dev/null | bsdtar -xpf -
|
||||
|
||||
# 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 "ERROR: unable to add /$i to the package"
|
||||
echo " If your user does not have permssion to read this file then"
|
||||
|
Loading…
Reference in New Issue
Block a user