summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-07-10 02:25:41 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-07-13 17:12:11 +0000
commitc87e8b2db809527457dbd9b033f04a42f9101a7a (patch)
tree17a04c3e5a90b21241bec37b7b76a89606871fc7
parentCI: run check for missing/unused dependecies in AppVeyor (diff)
downloadinkscape-c87e8b2db809527457dbd9b033f04a42f9101a7a.tar.gz
inkscape-c87e8b2db809527457dbd9b033f04a42f9101a7a.zip
use SYSTEMROOT in msys2checkdeps.py as location of the Windows directory in attempt to fix AppVeyor
-rw-r--r--msys2checkdeps.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/msys2checkdeps.py b/msys2checkdeps.py
index 40ca7b90c..d64d9bcbc 100644
--- a/msys2checkdeps.py
+++ b/msys2checkdeps.py
@@ -25,6 +25,9 @@ import subprocess
import sys
+SYSTEMROOT = os.environ['SYSTEMROOT']
+
+
class Dependency:
def __init__(self):
self.location = None
@@ -81,7 +84,7 @@ def get_dependencies(filename, deps):
parents[indent+1] = lib
# we don't care about Microsoft libraries and their dependencies
- if location and ':\\WINDOWS\\' in location:
+ if location and SYSTEMROOT in location:
skip_indent = indent
continue
@@ -155,6 +158,6 @@ if __name__ == '__main__':
deps_lower = [dep.lower() for dep in deps]
top_level_libs = [lib for lib in installed_libs if lib.lower() not in deps_lower]
for top_level_lib in top_level_libs:
- warning("Unused depedency " + top_level_lib)
+ warning("Unused dependency " + top_level_lib)
exit(exit_code)