makepkg: Fix typo to make xdelta creation work.

Signed-off-by: Nathan Jones <nathanj@insightbb.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Nathan Jones 2007-10-04 17:50:29 -05:00 committed by Aaron Griffin
parent 52e7e6d747
commit 02ec82b8c6
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ create_xdelta() {
local old_file old_version
for old_file in $(ls {"$cache_dir","$PKGDEST"}/${pkgname}-*-*{,-$CARCH}$PKGEXT 2>/dev/null); do
bsdtar -xOf "$oldfile" .PKGINFO > "$pkginfo" || continue
bsdtar -xOf "$old_file" .PKGINFO > "$pkginfo" || continue
if [ "$(cat "$pkginfo" | grep '^pkgname = ')" != "pkgname = $pkgname" ]; then
continue # Package name does not match.
elif [ "$(cat "$pkginfo" | grep '^arch = ')" != "arch = $CARCH" ] ; then