Lines 10-15
__all__ = ['keywords_content']
Link Here
|
10 |
|
10 |
|
11 |
from gentoolkit.eshowkw.display_pretty import colorize_string |
11 |
from gentoolkit.eshowkw.display_pretty import colorize_string |
12 |
from gentoolkit.eshowkw.display_pretty import align_string |
12 |
from gentoolkit.eshowkw.display_pretty import align_string |
|
|
13 |
from gentoolkit.query import Query |
14 |
from gentoolkit.package import PackageFormatter |
13 |
|
15 |
|
14 |
class keywords_content: |
16 |
class keywords_content: |
15 |
class RedundancyChecker: |
17 |
class RedundancyChecker: |
Lines 191-199
class keywords_content:
Link Here
|
191 |
|
193 |
|
192 |
mysplit = mycp.split('/') |
194 |
mysplit = mycp.split('/') |
193 |
mypkgs = [] |
195 |
mypkgs = [] |
|
|
196 |
q = Query(mycp) |
194 |
for oroot in pdb.porttrees: |
197 |
for oroot in pdb.porttrees: |
195 |
try: |
198 |
try: |
196 |
file_list = os.listdir(os.path.join(oroot, mycp)) |
199 |
file_list = os.listdir(os.path.join(oroot, mycp)) |
|
|
200 |
# in case package is installed but ebuild doesn't exist on system anymore |
201 |
for installed_pkg in [PackageFormatter(x) for x in q.find_installed()]: |
202 |
if 'I--' == installed_pkg.location: |
203 |
keywords, slot, eapi = installed_pkg.pkg.environment(['KEYWORDS', 'SLOT', 'EAPI']) |
204 |
repo_path = pdb.getRepositoryPath(installed_pkg.pkg.repo_name()) |
205 |
mypkgs.append([str(installed_pkg.pkg), repo_path, slot, eapi, keywords]) |
197 |
except OSError: |
206 |
except OSError: |
198 |
continue |
207 |
continue |
199 |
for x in file_list: |
208 |
for x in file_list: |
200 |
- |
|
|