diff options
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/Portage.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Portage.py b/src/lib/Client/Tools/Portage.py index 9dc9df8ff..d87fc30d4 100644 --- a/src/lib/Client/Tools/Portage.py +++ b/src/lib/Client/Tools/Portage.py @@ -24,7 +24,9 @@ class Portage(Bcfg2.Client.Tools.PkgTool): def RefreshPackages(self): '''Refresh memory hashes of packages''' - cache = self.cmd.run("equery -q list")[1] + ret, cache = self.cmd.run("equery -q list") + if ret == 2: + cache = self.cmd.run("equery -q list '*'")[1] pattern = re.compile('(.*)-(\d.*)') self.installed = {} for pkg in cache: |