diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:47:49 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:47:49 +0100 |
commit | a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb (patch) | |
tree | 1ebe1c0b4ca15b4826adf8e930f0cd945510c2bb /portato/db/database.py | |
parent | 7d7cccefa1373570791bde516dd90f5055888481 (diff) | |
download | portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.tar.gz portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.tar.bz2 portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.zip |
Do not show categories which only hold disabled packages
Diffstat (limited to 'portato/db/database.py')
-rw-r--r-- | portato/db/database.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/portato/db/database.py b/portato/db/database.py index c36c5dc..bc78b01 100644 --- a/portato/db/database.py +++ b/portato/db/database.py @@ -59,13 +59,15 @@ class Database (object): """ raise NotImplentedError - def get_cat (self, cat = None, byName = True): + def get_cat (self, cat = None, byName = True, showDisabled = False): """Returns the packages in the category. @param cat: category to return the packages from; if None it defaults to C{ALL} @type cat: string @param byName: selects whether to return the list sorted by name or by installation @type byName: boolean + @param showDisabled: should disabled packages be returned + @type showDisabled: boolean @return: an iterator over the packages @rtype: L{PkgData}<iterator> """ |