[csw-devel] SF.net SVN: gar:[5043] csw/mgar/pkg/cswutils/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon May 25 18:13:17 CEST 2009


Revision: 5043
          http://gar.svn.sourceforge.net/gar/?rev=5043&view=rev
Author:   dmichelsen
Date:     2009-05-25 16:13:17 +0000 (Mon, 25 May 2009)

Log Message:
-----------
cswutils: Honor tmpdir. This fixes #3438

Modified Paths:
--------------
    csw/mgar/pkg/cswutils/trunk/checksums
    csw/mgar/pkg/cswutils/trunk/files/checkpkg

Modified: csw/mgar/pkg/cswutils/trunk/checksums
===================================================================
--- csw/mgar/pkg/cswutils/trunk/checksums	2009-05-25 16:06:02 UTC (rev 5042)
+++ csw/mgar/pkg/cswutils/trunk/checksums	2009-05-25 16:13:17 UTC (rev 5043)
@@ -1,5 +1,5 @@
 091b12575ebc0e45cf8c3d8b43d8b638  download/COPYING
-7e5a50f1db3b6688c58da693f9ac408e  download/checkpkg
+0b9aeb7ab703b45e0961020bc4587f61  download/checkpkg
 6ec3b6597e04714430987ccc199db3c4  download/checkpkg.8
 9a637f6546cc50974159a987302d91c0  download/cpan2pkg
 2349d876bada6ee1bf025e576ec2c465  download/createpkg

Modified: csw/mgar/pkg/cswutils/trunk/files/checkpkg
===================================================================
--- csw/mgar/pkg/cswutils/trunk/files/checkpkg	2009-05-25 16:06:02 UTC (rev 5042)
+++ csw/mgar/pkg/cswutils/trunk/files/checkpkg	2009-05-25 16:13:17 UTC (rev 5043)
@@ -1,6 +1,6 @@
 #!/bin/ksh -p
 
-# checkpkg 2.6
+# checkpkg 2.7
 # This script examines a package that has been put together
 # for submittal to the CSW archive at opencsw.org
 #
@@ -17,6 +17,9 @@
 
 PATH=$PATH:/usr/sbin
 
+# this is actually a base for tmpfiles, not the full name
+TMPDIR=${TMPDIR:-/tmp}
+
 LOCAL_ARCH=`uname -p`
 
 
@@ -100,7 +103,7 @@
 
 file $f |sed 's/^.*://' |grep gzip >/dev/null
 if [ $? -eq 0 ] ; then
-	TMPARCHIVE=/tmp/`basename $f`
+	TMPARCHIVE=$TMPDIR/`basename $f`
 	if [[ -f $TMPARCHIVE ]] ; then
 		print ERROR: $TMPARCHIVE already exists
 		
@@ -111,7 +114,7 @@
 
 pkgname=`nawk 'NR == 2 {print $1; exit;}' $f`
 
-EXTRACTDIR=/tmp/checkpkg.$$
+EXTRACTDIR=$TMPDIR/checkpkg.$$
 
 if [ -d $EXTRACTDIR ] ; then
 	print ERROR: $EXTRACTDIR already exists


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list