r7954 - /scripts/qa/maintainercheck

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Sep 26 14:40:09 UTC 2007


Author: gregoa-guest
Date: Wed Sep 26 14:40:08 2007
New Revision: 7954

URL: http://svn.debian.org/wsvn/?sc=1&rev=7954
Log:
remove temporary files correctly

Modified:
    scripts/qa/maintainercheck

Modified: scripts/qa/maintainercheck
URL: http://svn.debian.org/wsvn/scripts/qa/maintainercheck?rev=7954&op=diff
==============================================================================
--- scripts/qa/maintainercheck (original)
+++ scripts/qa/maintainercheck Wed Sep 26 14:40:08 2007
@@ -5,15 +5,18 @@
 
 . $(dirname $0)/commoncheck
 
+DIR=$(mktemp -d)
+
 for P in $(svn ls $REPO/trunk/); do
 	P=${P%/}
-	CONTROL="$(mktemp).$P.control"
+	CONTROL="$DIR/$P.control"
 	svn export $REPO/trunk/$P/debian/control $CONTROL > /dev/null
 	if ! grep "Maintainer:.*pkg-perl-maintainers at lists\.alioth\.debian\.org" $CONTROL > /dev/null ; then
 		echo $P
 		egrep "(Maintainer|Uploaders)" $CONTROL | sort
 		echo
 	fi
-	rm -f $CONTROL
+	rm $CONTROL
 done
 
+rm -rf $DIR




More information about the Pkg-perl-cvs-commits mailing list