mirror of https://github.com/python/cpython
Hiding packages was done incorrectly. Fixed.
This commit is contained in:
parent
6cb9029a22
commit
f776dee6dd
|
@ -270,12 +270,19 @@ class PimpInterface:
|
|||
return self.pimpprefs.installDir == USER_INSTALL_DIR
|
||||
|
||||
def getbrowserdata(self, show_hidden=1):
|
||||
self.packages = self.pimpdb.list()
|
||||
rv = []
|
||||
for pkg in self.packages:
|
||||
packages = self.pimpdb.list()
|
||||
if show_hidden:
|
||||
self.packages = packages
|
||||
else:
|
||||
self.packages = []
|
||||
for pkg in packages:
|
||||
name = pkg.fullname()
|
||||
if name[0] == '(' and name[-1] == ')' and not show_hidden:
|
||||
continue
|
||||
self.packages.append(pkg)
|
||||
rv = []
|
||||
for pkg in self.packages:
|
||||
name = pkg.fullname()
|
||||
status, _ = pkg.installed()
|
||||
description = pkg.description()
|
||||
rv.append((status, name, description))
|
||||
|
|
Loading…
Reference in New Issue