From 81cad50a1e2ff62811eae1cbf199e6e5af43e5aa Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Dec 2010 20:39:54 +0100 Subject: [PATCH] xbps-src: do not return error if $wrksrc doesn't exist in the 'clean' target. --- xbps-src/shutils/tmpl_funcs.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/tmpl_funcs.sh.in b/xbps-src/shutils/tmpl_funcs.sh.in index f5ee1551971..3fc55176f12 100644 --- a/xbps-src/shutils/tmpl_funcs.sh.in +++ b/xbps-src/shutils/tmpl_funcs.sh.in @@ -242,8 +242,8 @@ remove_tmpl_wrksrc() { local lwrksrc="$1" - if [ -z "$lwrksrc" -o ! -d "$lwrksrc" ]; then - return 1 + if [ ! -d "$lwrksrc" ]; then + return 0 fi msg_normal "Cleaning '${sourcepkg}' build directory...\n"