summaryrefslogtreecommitdiff
path: root/patches/latexrun-pull-61
diff options
context:
space:
mode:
Diffstat (limited to 'patches/latexrun-pull-61')
-rw-r--r--patches/latexrun-pull-6118
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/latexrun-pull-61 b/patches/latexrun-pull-61
new file mode 100644
index 0000000..a784377
--- /dev/null
+++ b/patches/latexrun-pull-61
@@ -0,0 +1,18 @@
+--- latexrun
++++ latexrun
+@@ -457,10 +457,12 @@ class Message(collections.namedtuple(
+ 'Message', 'typ filename lineno msg')):
+ def emit(self):
+ if self.filename:
+- if self.filename.startswith('./'):
+- finfo = self.filename[2:]
+- else:
++ cwd = os.getcwd()
++ if (os.path.isabs(self.filename) and
++ os.path.commonpath([self.filename, cwd]) != cwd):
+ finfo = self.filename
++ else:
++ finfo = os.path.relpath(self.filename, cwd)
+ else:
+ finfo = '<no file>'
+ if self.lineno is not None:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback