From 0812ebe2d1dee04ad9e84d4178b0984e583a4bb9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Dec 2016 23:29:02 +0100 Subject: [PATCH] PakfireContext: Add shortcut to repos Signed-off-by: Michael Tremer --- src/pakfire/base.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- 2.39.5