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
fi
$cp_cmd -f $patch $wrksrc
# Try to guess if its a compressed patch.
if $(echo $patch|$grep_cmd -q .gz); then
$gunzip_cmd $patch
patch=${patch%%.gz}
$gunzip_cmd $wrksrc/$i
patch=${i%%.gz}
elif $(echo $patch|$grep_cmd -q .bz2); then
$bunzip2_cmd $patch
patch=${patch%%.bz2}
$bunzip2_cmd $wrksrc/$i
patch=${i%%.bz2}
elif $(echo $patch|$grep_cmd -q .diff); then
# nada
patch=$i
else
echo "*** WARNING: unknown patch type '$i' ***"
continue