Copy patch into $wrksrc before applying and use this one.

Previously it was using the one in PKGFS_TEMPLATESDIR, therefore
if it was compressed it was uncompressing it directly!

--HG--
extra : convert_revision : 210afd8662e0f9dcb6907a4d031a3197686bbdb8
This commit is contained in:
Juan RP 2008-10-10 04:48:58 +02:00
parent 6dd10d7ce4
commit 493809cbe4
1 changed files with 7 additions and 5 deletions

View File

@ -221,15 +221,17 @@ apply_tmpl_patches()
continue continue
fi fi
$cp_cmd -f $patch $wrksrc
# Try to guess if its a compressed patch. # Try to guess if its a compressed patch.
if $(echo $patch|$grep_cmd -q .gz); then if $(echo $patch|$grep_cmd -q .gz); then
$gunzip_cmd $patch $gunzip_cmd $wrksrc/$i
patch=${patch%%.gz} patch=${i%%.gz}
elif $(echo $patch|$grep_cmd -q .bz2); then elif $(echo $patch|$grep_cmd -q .bz2); then
$bunzip2_cmd $patch $bunzip2_cmd $wrksrc/$i
patch=${patch%%.bz2} patch=${i%%.bz2}
elif $(echo $patch|$grep_cmd -q .diff); then elif $(echo $patch|$grep_cmd -q .diff); then
# nada patch=$i
else else
echo "*** WARNING: unknown patch type '$i' ***" echo "*** WARNING: unknown patch type '$i' ***"
continue continue