def __init__(self, pakfire, repo, db, data): Package.__init__(self, pakfire, repo) self.db = db self._data = {} self._filelist = None for key in data.keys(): self._data[key] = data[key]
def __init__(self, pakfire, name, lexer): Package.__init__(self, pakfire) self._name = name self.lexer = lexer # Save filelist. self._filelist = set() # Store additional dependencies in here. self._dependencies = {} # Generate a random identifier. self._uuid = "%s" % uuid.uuid4()
def __init__(self, pakfire, filename=None, lines=None): Package.__init__(self, pakfire) # Update environment. environ = self.pakfire.distro.environ environ.update({ "PARALLELISMFLAGS": "-j%d" % system.parallelism, }) if filename: self.filename = os.path.abspath(filename) environ["BASEDIR"] = os.path.dirname(self.filename) # Open and parse the makefile. self.lexer = lexer.RootLexer.open(self.filename, environ=environ) else: self.filename = None self.lexer = lexer.RootLexer(lines, environ=environ)
def __init__(self, pakfire, filename=None, lines=None): Package.__init__(self, pakfire) # Update environment. environ = self.pakfire.distro.environ environ.update({ "PARALLELISMFLAGS" : "-j%d" % system.parallelism, }) if filename: self.filename = os.path.abspath(filename) environ["BASEDIR"] = os.path.dirname(self.filename) # Open and parse the makefile. self.lexer = lexer.RootLexer.open(self.filename, environ=environ) else: self.filename = None self.lexer = lexer.RootLexer(lines, environ=environ)