diff -ur rubber-1.1/src/rules/latex/__init__.py rubber-1.1.new/src/rules/latex/__init__.py
--- rubber-1.1/src/rules/latex/__init__.py 2006-03-17 14:52:45.000000000 +0100
+++ rubber-1.1.new/src/rules/latex/__init__.py 2013-04-16 11:10:53.804141132 +0200
@@ -1106,8 +1106,9 @@
msg.progress(_("compiling %s") % msg.simplify(self.source()))
file = self.source()
+ fakefile = self.src_base
cmd = [self.vars["program"]]
- cmd += map(lambda x: x.replace("%s",file), self.cmdline)
+ cmd += map(lambda x: x.replace("%s",fakefile), self.cmdline)
inputs = string.join(self.env.path, ":")
if inputs == "":
env = {}
@@ -1120,6 +1121,13 @@
if self.log.read(self.src_base + ".log"):
msg.error(_("Could not run %s.") % cmd[0])
+ msg.error(_("path %s") % file)
+ msg.error(_("cmd %s") % self.cmdline)
+ msg.error(_("env %s") % env)
+ msg.error(_("inputs %s") % inputs)
+ msg.error(_("other %s") % self.src_base)
+ msg.error(_("cmd1 %s") % cmd[1])
+ msg.error(_("cmd2 %s") % cmd[2])
return 1
if self.log.errors():
return 1