xbps-src: do not return error if $wrksrc doesn't exist in the 'clean' target.

This commit is contained in:
Juan RP 2010-12-23 20:39:54 +01:00
parent e208917135
commit 81cad50a1e

View File

@ -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"