]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - tools/check-efi-alignment.py
efi: skip check-alignment-* tests if pefile is not installed
[thirdparty/systemd.git] / tools / check-efi-alignment.py
index bb33ac080974e4601a4473b54b28975b5adc7a55..26d5f5e40d8b784ce9deb392356f64e9062f339d 100755 (executable)
@@ -4,7 +4,11 @@
 
 import sys
 
-import pefile
+try:
+    import pefile
+except ImportError as e:
+    print(str(e), file=sys.stderr)
+    sys.exit(77)
 
 
 def main():