[packages/rpm-build-tools] fix tempfile fallback

glen glen at pld-linux.org
Sun Jan 4 16:38:37 CET 2015


commit b1f2a05a67b925e2037842ab12ec220f8d8fb046
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 4 17:38:30 2015 +0200

    fix tempfile fallback

 builder.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/builder.sh b/builder.sh
index a1937f7..10015b7 100755
--- a/builder.sh
+++ b/builder.sh
@@ -35,11 +35,10 @@
 
 PROGRAM=${0##*/}
 APPDIR=$(d=$0; [ -L "$d" ] && d=$(readlink -f "$d"); dirname "$d")
-RCSID='$Id: builder,v 1.645 2011/02/13 17:54:10 glen Exp $' r=${RCSID#* * } rev=${r%% *}
-VERSION="v0.35/$rev"
+VERSION="v0.35"
 VERSIONSTRING="\
 Build package utility from PLD Linux Packages repository
-$VERSION (C) 1999-2014 Free Penguins".
+$VERSION (C) 1999-2015 Free Penguins".
 
 CLEAN_PATH="/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin"
 
@@ -451,7 +450,7 @@ Usage: builder [--all-branches] [-D|--debug] [-V|--version] [--short-version]  [
 
 # create tempfile. as secure as possible
 tempfile() {
-	mktemp --tmpdir -t builder.$PACKAGE_NAME.XXXXXX || ${TMPDIR:-/tmp}/builder.$RANDOM.$$
+	mktemp --tmpdir -t builder.$PACKAGE_NAME.XXXXXX || echo ${TMPDIR:-/tmp}/builder.$RANDOM.$$
 }
 
 tempdir() {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/b1f2a05a67b925e2037842ab12ec220f8d8fb046



More information about the pld-cvs-commit mailing list