torque (2.4.8+dfsg-9squeeze1) xpbs_xpbsmon_tclIndex.patch

Summary

 src/gui/buildindex.src           |    1 +
 src/tools/xpbsmon/buildindex.src |    1 +
 2 files changed, 2 insertions(+)

    
download this patch

Patch contents

Author: Dominique 
Origin: Debian
Description: Fix tclIndex generation
 According to http://www.gnu.org/prep/standards/html_node/DESTDIR.html,
 DESTDIR is a temporary location. "Also, specifying DESTDIR should not
 change the operation of the software in any way, so its value should
 not be included in any file contents."
Bug-Debian: http://bugs.debian.org/587262
Forwarded: no

--- torque-2.4.8+dfsg.orig/src/gui/buildindex.src
+++ torque-2.4.8+dfsg/src/gui/buildindex.src
@@ -154,6 +154,7 @@ if { $doit } {
     set f [open tclIndex w]
     puts $f $entry_
     close $f
+    exec sed -i s/$destdir_//g tclIndex
   }
 }
 exit 0
--- torque-2.4.8+dfsg.orig/src/tools/xpbsmon/buildindex.src
+++ torque-2.4.8+dfsg/src/tools/xpbsmon/buildindex.src
@@ -154,6 +154,7 @@ if { $doit } {
     set f [open tclIndex w]
     puts $f $entry_
     close $f
+    exec sed -i s/$destdir_//g tclIndex
   }
 }
 exit 0