From 37c599e017bc342e9a8d5b7cf45b30a71aa0d39e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 2 Oct 2008 01:48:48 +0200 Subject: [PATCH] Bah. Fix wrksrc in templates that use it. --HG-- extra : convert_revision : 652b945cce3ea8c774f38a80a3ff9bf395d16b3f --- pkgfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgfs.sh b/pkgfs.sh index 194814d4e78..fc11a7a1aa0 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -445,14 +445,14 @@ fixup_tmpl_libtool() build_tmpl_sources() { - local wrksrc="" - [ -z "$pkgname" ] && return 1 if [ -n "$distfiles" ]; then wrksrc=$PKGFS_BUILDDIR/$distfiles - else + elif [ -z "$wrksrc" ]; then wrksrc=$PKGFS_BUILDDIR/$pkgname + else + wrksrc=$PKGFS_BUILDDIR/$wrksrc fi if [ ! -d "$wrksrc" ]; then