Commits

Michał Górny committed 2e8a332

Support getting keywords off packages.

Comments (0)

Files changed (4)

gentoopm/basepm/pkg.py

 		"""
 		pass
 
+	@abstractproperty
+	def keywords(self):
+		"""
+		Package keywords.
+
+		@type: L{SpaceSepTuple}
+		"""
+		pass
+
 	@property
 	def environ(self):
 		"""

gentoopm/paludispm/pkg.py

 		return SpaceSepTuple([str(x) for x in spec])
 
 	@property
+	def keywords(self):
+		kws = self._pkg.keywords_key().parse_value()
+		return SpaceSepTuple([str(x) for x in kws])
+
+	@property
 	def slot(self):
 		k = self._pkg.slot_key()
 		return str(k.parse_value())

gentoopm/pkgcorepm/pkg.py

 		return SpaceSepTuple(self._pkg.homepage)
 
 	@property
+	def keywords(self):
+		return SpaceSepTuple(self._pkg.keywords)
+
+	@property
 	def defined_phases(self):
 		return SpaceSepTuple(self._pkg.defined_phases)
 

gentoopm/portagepm/pkg.py

 		return SpaceSepTuple(self._aux_get('HOMEPAGE'))
 
 	@property
+	def keywords(self):
+		return SpaceSepTuple(self._aux_get('KEYWORDS'))
+
+	@property
 	def slot(self):
 		return self._aux_get('SLOT')
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.