FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 11-15-2009, 09:27 AM
Allan McRae
 
Default contrib/bacman: fix checking if file has been added

Fixes FS#17140.

Signed-off-by: Allan McRae <allan@archlinux.org>
---
contrib/bacman | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/bacman b/contrib/bacman
index 22940ec..dfd53e8 100755
--- a/contrib/bacman
+++ b/contrib/bacman
@@ -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"
--
1.6.5.2
 

Thread Tools




All times are GMT. The time now is 07:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org