From c4154ca4d2b7b2a7bcc266d3f473ff1d247cac9f Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 19 Oct 2011 10:14:43 -0400 Subject: Various Packages plugin fixes: * Added bcfg2-yum-helper to offload Yum API calls to a short-lived process. As absurd as this is, it appears to be the standard way to get around Yum's atrocious memory handling (cf. yum-updatesd). * Added SourceInitError for non-fatal errors instantiating new sources. * Fixed bug that caused all cached data to be removed on server startup (reported by mikemccllstr on IRC). * Fixed a number of overly aggressive caching issues. * Fixed the way sources are loaded at server startup. * Fixed handling of Yum package groups. --- src/lib/Server/Plugins/Packages/Source.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/Server/Plugins/Packages/Source.py') diff --git a/src/lib/Server/Plugins/Packages/Source.py b/src/lib/Server/Plugins/Packages/Source.py index 00018ef9a..c5ea49453 100644 --- a/src/lib/Server/Plugins/Packages/Source.py +++ b/src/lib/Server/Plugins/Packages/Source.py @@ -28,6 +28,10 @@ def fetch_url(url): return urlopen(url).read() +class SourceInitError(Exception): + pass + + class Source(object): reponame_re = re.compile(r'.*/(?:RPMS\.)?([^/]+)') basegroups = [] -- cgit v1.2.3-1-g7c22