From 86d7b2f804c4dc468c1f1659935cabd05f13125d Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Thu, 29 Jul 2010 14:34:30 +0200 Subject: [PATCH] Added package methods to yum helper class --- src/pylorax/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 267e412e..fe5b3560 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -610,6 +610,14 @@ class YumHelper(object): pl = self.yb.doPackageLists(patterns=[pattern]) return pl.installed, pl.available + @property + def installed_packages(self): + pl = self.yb.doPackageLists() + return pl.installed + + def get_file_list(self, package): + return package.returnFileEntries() + class RpmCallback(yum.rpmtrans.SimpleCliCallBack):