diff options
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index d79771560..0b5ddfc52 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5567,8 +5567,8 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None): myp=mycpv mykey=None matches=[] - if mydb: - for x in settings.categories: + if mydb and hasattr(mydb, "categories"): + for x in mydb.categories: if mydb.cp_list(x+"/"+myp,use_cache=use_cache): matches.append(x+"/"+myp) if len(matches) > 1: |