[Lunar-commits] <lunar> Readable temp files.
Auke Kok
sofar at foo-projects.org
Sun Mar 4 20:07:16 CET 2012
commit 2d1cf7a8f577309f6c4f778fe05c82949825465d
Author: v4hn <me at v4hn.de>
Date: Sun Mar 4 11:07:16 2012 -0800
Readable temp files.
You ever wondered what information of the build process is stored
in which /tmp file? Something like lunar.lin.27767..ccOsV37CAJ
or lunar.lin.27767.octave.2p6n3jJ7ya doesn't give away too much.
I'm not sure whether or not this was intended, but the fourth
slot of the filename is set to the current module, instead
of the _purpose_ that is given as a parameter(and that
purpose seems to include the current module whenever there is one).
The patch results in filenames like
lunar.lin.27767.depends.cache.ccOsV37CAJ or
lunar.lin.27767.octave.compile-log.2p6n3jJ7ya
---
var/lib/lunar/functions/temp.lunar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/var/lib/lunar/functions/temp.lunar b/var/lib/lunar/functions/temp.lunar
index 4904f00..76b174b 100644
--- a/var/lib/lunar/functions/temp.lunar
+++ b/var/lib/lunar/functions/temp.lunar
@@ -20,7 +20,7 @@
temp_create() {
local TMPFILE
debug_msg "temp_create ($@)"
- TMPFILE=$MODULE
+ TMPFILE="$@"
if TMPFILE=$(mktemp -p "$TMPDIR" -t lunar.`basename $0`.$$.$TMPFILE.XXXXXXXXXX ) ; then
echo $TMPFILE
else
More information about the Lunar-commits
mailing list