Esempio n. 1
0
	def __init__(self, cpv):
		"""
		Initialize the class with the cpv. All metadata are read from portage
		"""
		self.repo, self.build_time, self.size = \
				VARDB.aux_get(cpv, ['repository', 'BUILD_TIME', 'SIZE'])

		arch = portage.settings['ARCH']
		accept_keywords = portage.settings['ACCEPT_KEYWORDS'].split()
		ka = KeywordAnalyser(arch=arch, accept_keywords=accept_keywords)
		self.keyword = ka.get_inst_keyword_cpv(cpv)

		self.iuse, self.use = \
				gentoolkit.flag.get_flags(cpv, final_setting=True)

		self.pkguse = gentoolkit.flag.get_installed_use(cpv, use="PKGUSE")
Esempio n. 2
0
	def get_installed_CPVs():
		"""
		Read installed packages as category/packagename-version.
		"""
		return VARDB.cpv_all()
Esempio n. 3
0
	def get_installed_CPs():
		"""
		Read installed packages as category/packagename.
		"""
		return VARDB.cp_all()