[arch-dev-public] [PATCH 1/2] checkpkg: Use temporary working directory
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> --- checkpkg | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/checkpkg b/checkpkg index 47fb672..7765d80 100755 --- a/checkpkg +++ b/checkpkg @@ -27,6 +27,12 @@ if [ "$arch" == 'any' ]; then CARCH='any' fi +TEMPDIR=$(mktemp /tmp/checkpkg-script.XXXX) +rm $TEMPDIR +mkdir -p $TEMPDIR + +cd $TEMPDIR + for _pkgname in ${pkgname[@]}; do pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} @@ -90,3 +96,5 @@ for _pkgname in ${pkgname[@]}; do echo "No filename differences for $_pkgname." fi done + +echo "Files saved to $TEMPDIR" -- 1.7.1.1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> --- checkpkg | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/checkpkg b/checkpkg index 7765d80..84c2493 100755 --- a/checkpkg +++ b/checkpkg @@ -93,7 +93,7 @@ for _pkgname in ${pkgname[@]}; do objdump -p $i | grep SONAME done else - echo "No filename differences for $_pkgname." + echo "No soname differences for $_pkgname." fi done -- 1.7.1.1
I altered the first patch to use mktemp -d; the second didn't apply but I did the minor change by hand. -- Pierre Schmitz, https://users.archlinux.de/~pierre
On Sun, Jul 11, 2010 at 7:47 AM, Pierre Schmitz <pierre@archlinux.de> wrote:
I altered the first patch to use mktemp -d; the second didn't apply but I did the minor change by hand. -- Pierre Schmitz, https://users.archlinux.de/~pierre
Will you also fix lddd to use the -d option for mktemp? Do you want me to send a patch for it?
On Sun, 11 Jul 2010 13:22:08 -0400, Eric Bélanger <snowmaniscool@gmail.com> wrote:
On Sun, Jul 11, 2010 at 7:47 AM, Pierre Schmitz <pierre@archlinux.de> wrote:
I altered the first patch to use mktemp -d; the second didn't apply but I did the minor change by hand. -- Pierre Schmitz, https://users.archlinux.de/~pierre
Will you also fix lddd to use the -d option for mktemp? Do you want me to send a patch for it?
done. -- Pierre Schmitz, https://users.archlinux.de/~pierre
participants (2)
-
Eric Bélanger
-
Pierre Schmitz