File: check-gimp-data.py

package info (click to toggle)
gimp 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 222,880 kB
  • sloc: ansic: 870,914; python: 10,965; lisp: 10,857; cpp: 7,355; perl: 4,536; sh: 1,753; xml: 972; yacc: 609; lex: 348; javascript: 150; makefile: 42
file content (8 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/usr/bin/env python3
import os
import subprocess
from pathlib import Path

os.chdir(Path(os.getenv("MESON_SOURCE_ROOT",".")))
result = subprocess.run(['git', 'status', '--untracked-files=no', '--short', '--ignore-submodules=dirty', 'gimp-data'], capture_output=True, text=True, check=True)
exit(len(result.stdout.splitlines()))