Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-07-11 13:45:51 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-07-11 13:45:51 +0200
commita01ed3869cb03952a6891b1746087cc1134b7187 (patch)
tree1dc05d0810a43f2f72110149efed90e4be9d2f9a
parente656ec7052d90a2501f31ed350137e81ea3136ae (diff)
checkpkg: Use temporary working directory
-rwxr-xr-xcheckpkg5
1 files changed, 5 insertions, 0 deletions
diff --git a/checkpkg b/checkpkg
index 47fb672..47344e6 100755
--- a/checkpkg
+++ b/checkpkg
@@ -27,6 +27,9 @@ if [ "$arch" == 'any' ]; then
CARCH='any'
fi
+TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX)
+cd $TEMPDIR
+
for _pkgname in ${pkgname[@]}; do
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT}
@@ -90,3 +93,5 @@ for _pkgname in ${pkgname[@]}; do
echo "No filename differences for $_pkgname."
fi
done
+
+echo "Files saved to $TEMPDIR"