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