backend/server/rhnSQL/__init__.py | 3 ++-
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
New commits:
commit bb2153a4dcc32d0c9de9ebea53e8f15dc9fef513
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Feb 28 16:56:30 2013 +0100
Automatic commit of package [spacewalk-backend] release [1.9.43-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 18d2157..8d10d58 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -12,7 +12,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 1.9.42
+Version: 1.9.43
Release: 1%{?dist}
URL:
https://fedorahosted.org/spacewalk
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -638,6 +638,9 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Thu Feb 28 2013 Jan Pazdziora 1.9.43-1
+- Init CFG only if it was not yet.
+
* Thu Feb 28 2013 Michael Mraka <michael.mraka(a)redhat.com> 1.9.42-1
- reverted --db-only removal
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 991d409..6b107d6 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.9.42-1 backend/
+1.9.43-1 backend/
commit 70a4fe599ee593dd0fa86fc549906c12f869e42a
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Feb 28 16:56:08 2013 +0100
Init CFG only if it was not yet.
diff --git a/backend/server/rhnSQL/__init__.py b/backend/server/rhnSQL/__init__.py
index 5b03dbf..b2d10c6 100644
--- a/backend/server/rhnSQL/__init__.py
+++ b/backend/server/rhnSQL/__init__.py
@@ -81,7 +81,8 @@ def initDB(backend=None, host=None, port=None, username=None,
"""
if backend is None:
- initCFG('server')
+ if CFG is None or not CFG.is_initialized():
+ initCFG('server')
backend = CFG.DB_BACKEND
host = CFG.DB_HOST
port = CFG.DB_PORT