示例#1
0
	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]
示例#2
0
    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]
示例#3
0
    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()
示例#4
0
文件: make.py 项目: ipfire/pakfire
	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()
示例#5
0
    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)
示例#6
0
文件: make.py 项目: ipfire/pakfire
	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)