From 9661a234b8909e8b2abd8206d257f84d0fbb5c77 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Wed, 5 Nov 2008 09:13:32 +0000 Subject: [PATCH] may be needed --- pisi/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pisi/api.py b/pisi/api.py index 82897f81..01c5ed60 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -155,6 +155,14 @@ def list_installed(): """ return pisi.db.installdb.InstallDB().list_installed() +def list_obsoleted(repo=None): + """ + Return a list of obsoleted packages -> list_of_strings + @param repo: Repository of the obsoleted packages. If repo is None than returns + a list of all the obsoleted packages in all the repositories + """ + return pisi.db.packagedb.PackageDB().get_obsoletes(repo) + def list_replaces(repo=None): """ Return a dictionary of the replaced packages in the given repository