From: Michael Tremer Date: Sun, 11 Dec 2016 22:29:02 +0000 (+0100) Subject: PakfireContext: Add shortcut to repos X-Git-Tag: 0.9.28~1285^2~1368 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0812ebe2d1dee04ad9e84d4178b0984e583a4bb9;p=pakfire.git PakfireContext: Add shortcut to repos Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/base.py b/src/pakfire/base.py index 022efbb5a..4b307f42b 100644 --- a/src/pakfire/base.py +++ b/src/pakfire/base.py @@ -145,6 +145,14 @@ class PakfireContext(object): def __init__(self, pakfire): self.pakfire = pakfire + @property + def repos(self): + """ + Shortcut to access any configured + repositories for this Pakfire instance + """ + return self.pakfire.repos + def check(self, allow_downgrade=True, allow_uninstall=True): """ Try to fix any errors in the system.