Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: d1f2513e92
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 397 Bytes
"""module for identifying package names in files and strings"""
import re
from .gentooPackage import gentooPackage as gP
def findPackages (s, regexp):
""" Given a string s,
and a compiled regexp regexp
return all gentooPacakges that can be identified in the string"""
# Should it be this simple?
return [gP(ps) for ps in regexp.findall(s)]
# Yes, it is...
Jump to Line
Something went wrong with that request. Please try again.