2
1

lib_ignore.py 425 B

1234567891011121314
  1. # See utils/checkpackagelib/readme.txt before editing this file.
  2. import os
  3. from checkpackagelib.base import _CheckFunction
  4. class IgnoreMissingFile(_CheckFunction):
  5. def check_line(self, lineno, text):
  6. fields = text.split()
  7. if not os.path.exists(fields[0]):
  8. return ["{}:{}: ignored file {} is missing"
  9. .format(self.filename, lineno, fields[0]),
  10. text]