tools/python/pkglint/userland.py
changeset 99 c15c9099bb44
parent 84 b80cfd4e0a16
child 117 8f634eb6f66b
equal deleted inserted replaced
98:7eea11439375 99:c15c9099bb44
    40         def __init__(self, config):
    40         def __init__(self, config):
    41                 self.description = _(
    41                 self.description = _(
    42                     "checks Userland packages for common content errors")
    42                     "checks Userland packages for common content errors")
    43 		self.prototype = os.getenv('PROTO_DIR')
    43 		self.prototype = os.getenv('PROTO_DIR')
    44 		self.runpath_re = [
    44 		self.runpath_re = [
    45 			re.compile('^/lib/'),
    45 			re.compile('^/lib(/.*)?$'),
    46 			re.compile('^/usr/'),
    46 			re.compile('^/usr/'),
    47 			re.compile('^\$ORIGIN/')
    47 			re.compile('^\$ORIGIN/')
    48 		]
    48 		]
    49 		self.initscript_re = re.compile("^etc/(rc.|init)\.d")
    49 		self.initscript_re = re.compile("^etc/(rc.|init)\.d")
    50                 super(UserlandActionChecker, self).__init__(config)
    50                 super(UserlandActionChecker, self).__init__(config)