mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
ci/fixup-cov-paths: Ensure path replacement still works
Without doing this we were replacing the paths with the glib subfolder, pointing to the wrong files.
This commit is contained in:
parent
c320bb0bf8
commit
a04340a742
@ -13,6 +13,7 @@ def main(argv):
|
|||||||
print("cov-fixup:", path)
|
print("cov-fixup:", path)
|
||||||
text = io.open(path, "r", encoding="utf-8").read()
|
text = io.open(path, "r", encoding="utf-8").read()
|
||||||
text = text.replace("\\\\", "/")
|
text = text.replace("\\\\", "/")
|
||||||
|
text = text.replace("\\", "/")
|
||||||
old_root = re.search(":(.*?)/glib/.*?$", text, re.MULTILINE).group(1)
|
old_root = re.search(":(.*?)/glib/.*?$", text, re.MULTILINE).group(1)
|
||||||
new_root = os.path.dirname(os.getcwd())
|
new_root = os.path.dirname(os.getcwd())
|
||||||
if old_root != new_root:
|
if old_root != new_root:
|
||||||
|
Loading…
Reference in New Issue
Block a user