Ejemplo n.º 1
0
    def analyse_cpv(self, cpv):
        """Gets all relavent USE flag info for a cpv and breaks them down
		into 3 sets, plus (package.use enabled), minus ( package.use disabled),
		unset.

		@param cpv: string. 'cat/pkg-ver'
		@rtype tuple of sets
		@return (plus, minus, unset) sets of USE flags
		"""
        installed = set(self.get_used(cpv, self.target))
        _iuse = self.get_flags(cpv)
        iuse = set(reduce_flags(_iuse))
        iuse_defaults = defaulted_flags(_iuse)
        return self._analyse(installed, iuse, iuse_defaults)
Ejemplo n.º 2
0
	def analyse_cpv(self, cpv):
		"""Gets all relavent USE flag info for a cpv and breaks them down
		into 3 sets, plus (package.use enabled), minus ( package.use disabled),
		unset.

		@param cpv: string. 'cat/pkg-ver'
		@rtype tuple of sets
		@return (plus, minus, unset) sets of USE flags
		"""
		installed = set(self.get_used(cpv, self.target))
		_iuse = self.get_flags(cpv)
		iuse =  set(reduce_flags(_iuse))
		iuse_defaults = defaulted_flags(_iuse)
		return self._analyse(installed, iuse, iuse_defaults)
Ejemplo n.º 3
0
    def analyse_pkg(self, pkg):
        """Gets all relevent USE flag info for a pkg and breaks them down
		into 3 sets, plus (package.use enabled), minus ( package.use disabled),
		unset.

		@param pkg: gentoolkit.package.Package object
		@rtype tuple of sets
		@return (plus, minus, unset) sets of USE flags
		"""
        installed = set(self.pkg_used(pkg))
        #print("installed =", installed)
        _iuse = self.pkg_flags(pkg)
        iuse = set(reduce_flags(_iuse))
        iuse_defaults = defaulted_flags(_iuse)
        #print("iuse =", iuse)
        return self._analyse(installed, iuse, iuse_defaults)
Ejemplo n.º 4
0
	def analyse_pkg(self, pkg):
		"""Gets all relevent USE flag info for a pkg and breaks them down
		into 3 sets, plus (package.use enabled), minus ( package.use disabled),
		unset.

		@param pkg: gentoolkit.package.Package object
		@rtype tuple of sets
		@return (plus, minus, unset) sets of USE flags
		"""
		installed = set(self.pkg_used(pkg))
		#print("installed =", installed)
		_iuse =  self.pkg_flags(pkg)
		iuse =  set(reduce_flags(_iuse))
		iuse_defaults = defaulted_flags(_iuse)
		#print("iuse =", iuse)
		return self._analyse(installed, iuse, iuse_defaults)