Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2013-10-23 23:34:12 -0400
committerPierre Schmitz <pierre@archlinux.de>2013-10-27 15:54:41 +0100
commit70309118ab1d082bf12dfd39c3068f5fdd6662dc (patch)
tree42784ca3c5fd7a1081d0a029611792643e59fcc8
parent164f5b758d56ce36ac8b087c1d55b8719555711f (diff)
checkpkg: Create symlinks to old packages in $TEMPDIR instead of $PWD
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--checkpkg.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/checkpkg.in b/checkpkg.in
index ef46399..3bd22e4 100644
--- a/checkpkg.in
+++ b/checkpkg.in
@@ -58,15 +58,15 @@ for _pkgname in "${pkgname[@]}"; do
if [[ $pkgurl = file://* ]]; then
ln -s "${pkgurl#file://}" "${pkgurl##file://*/}"
elif [[ -f "$PKGDEST/$oldpkg" ]]; then
- ln -s "$PKGDEST/$oldpkg" "$oldpkg"
+ ln -s "$PKGDEST/$oldpkg" "$TEMPDIR/$oldpkg"
elif [[ -f "$STARTDIR/$oldpkg" ]]; then
- ln -s "$STARTDIR/$oldpkg" "$oldpkg"
+ ln -s "$STARTDIR/$oldpkg" "$TEMPDIR/$oldpkg"
else
- curl -fsLC - --retry 3 --retry-delay 3 -o "$oldpkg" "$pkgurl"
+ curl -fsLC - --retry 3 --retry-delay 3 -o "$TEMPDIR/$oldpkg" "$pkgurl"
fi
fi
- bsdtar tf "$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old"
+ bsdtar tf "$TEMPDIR/$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old"
bsdtar tf "$pkgfile" | sort > "$TEMPDIR/filelist-$_pkgname"
sdiff -s "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname"