File: rules-not-executable.py

package info (click to toggle)
lintian-brush 0.147
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,872 kB
  • sloc: python: 17,649; makefile: 814; sh: 140; xml: 119; javascript: 3; ansic: 2
file content (15 lines) | stat: -rwxr-xr-x 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python3

import os
import sys

from lintian_brush.fixer import report_result

if not os.path.exists('debian/rules'):
    sys.exit(0)

os.chmod('debian/rules', 0o755)

report_result(
    'Mark debian/rules as executable.',
    certainty='certain')