From f3c782643c5d34a59e87c01ae515d6cbf3e120b7 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Wed, 20 Sep 2006 07:13:58 +0000 Subject: [PATCH] * api should have list_installed() too... --- pisi/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pisi/api.py b/pisi/api.py index be954ed5..54c398b9 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -146,6 +146,10 @@ def finalize(): ctx.ui.close() ctx.initialized = False +def list_installed(): + '''returns a set of installed package names''' + return set(pisi.context.installdb.list_installed()) + def list_available(repo = None): '''returns a set of available package names''' return set(ctx.packagedb.list_packages(repo = repo))