Skip to content
Snippets Groups Projects
Commit 000d68f7 authored by Ionut Biru's avatar Ionut Biru Committed by Pierre Schmitz
Browse files

copy packages into TEMPDIR


TEMPDIR is used before packages are copied into it and made it fail
because cannot find any.

Signed-off-by: default avatarIonut Biru <ibiru@archlinux.org>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent fc6efdc3
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ if [ "$arch" == 'any' ]; then ...@@ -27,6 +27,7 @@ if [ "$arch" == 'any' ]; then
CARCH='any' CARCH='any'
fi fi
STARTDIR=$(pwd)
TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX) TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX)
cd $TEMPDIR cd $TEMPDIR
...@@ -34,14 +35,14 @@ for _pkgname in ${pkgname[@]}; do ...@@ -34,14 +35,14 @@ for _pkgname in ${pkgname[@]}; do
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT}
if [ -f "$(pwd)/$pkgfile" ]; then if [ -f "$STARTDIR/$pkgfile" ]; then
pkgfile=$(pwd)/$pkgfile cp "$STARTDIR/$pkgfile" .
elif [ -f "$PKGDEST/$pkgfile" ]; then elif [ -f "$PKGDEST/$pkgfile" ]; then
pkgfile=$PKGDEST/$pkgfile cp "$PKGDEST/$pkgfile" .
elif [ -f "$(pwd)/$oldstylepkgfile" ]; then elif [ -f "$STARTDIR/$oldstylepkgfile" ]; then
pkgfile=$(pwd)/$oldstylepkgfile cp "$STARTDIR/$oldstylepkgfile" .
elif [ -f "$PKGDEST/$oldstylepkgfile" ]; then elif [ -f "$PKGDEST/$oldstylepkgfile" ]; then
pkgfile=$PKGDEST/$oldstylepkgfile cp "$PKGDEST/$oldstylepkgfile" .
else else
echo "File \"$pkgfile\" doesn't exist" echo "File \"$pkgfile\" doesn't exist"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment