summaryrefslogtreecommitdiff
path: root/patches/latexrun-pull-61
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthewsot@outlook.com>2020-04-13 08:40:01 -0700
committerMatthew Sotoudeh <matthewsot@outlook.com>2020-04-13 08:40:01 -0700
commit96e12c8a274ea3e08648116f3fb052e3de005560 (patch)
treecc419696e4e062fc7173876073598c98cae0aa63 /patches/latexrun-pull-61
parent229b0f318e0160013c9c5700a22cc13da37fdcd8 (diff)
Initial code release
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