diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-05 18:58:55 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-05 18:58:55 -0500 |
commit | 21d641cbc8b70fce762b6f6d5a402783745d9096 (patch) | |
tree | 150dc7e7dc07e9e189ff60ed1030dc558b6ff26a /src/librefetch | |
parent | 72e62c36a8efd9594a65c1352faa8b31f729aef0 (diff) |
librefetch: that's what I get for commiting a fix without a test
Diffstat (limited to 'src/librefetch')
-rwxr-xr-x | src/librefetch/librefetch | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index e3897c7..e2300e0 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -323,8 +323,7 @@ tidy_install_purge() { modified_makepkg() { local makepkg_orig=$1 - local makepkg_mine="$tempdir/makepkg" - local makepkg_mine="$(mktemp "${0##*/}.XXXXXXXXXXX.makepkg")" + local makepkg_mine="$(mktemp --tmpdir "${0##*/}.XXXXXXXXXXX.makepkg")" tmpfiles+=("$makepkg_mine") { echo '#!/bin/bash' @@ -378,7 +377,7 @@ package() { cp -a "$srcdir"/*/ "$pkgdir/"; } modified_pkgbuild() { local pkgbuild=$1 - local srcbuild="$(mktemp "${0##*/}.XXXXXXXXXXX.PKGBUILD.2.SRCBUILD")" + local srcbuild="$(mktemp "${pkgbuild%/*}/${0##*/}.XXXXXXXXXXX.PKGBUILD.2.SRCBUILD")" tmpfiles+=("$srcbuild") printf '%s' "$pkgbuild_append" | cat "$pkgbuild" - > "$srcbuild" printf '%s\n' "$srcbuild" @@ -389,7 +388,7 @@ modified_pkgbuild() { modified_srcbuild() { local orig=$1 - local srcbuild="$(mktemp "${0##*/}.XXXXXXXXXXX.SRCBUILD.2.SRCBUILD")" + local srcbuild="$(mktemp "${orig%/*}/${0##*/}.XXXXXXXXXXX.SRCBUILD.2.SRCBUILD")" tmpfiles+=("$srcbuild") sed -e '/PKGDEST=/d' -e '/PKGEXT=/d' < "$orig" > "$new" printf '%s\n' "$new" |