client/rhel/rhn-client-tools/rhn-client-tools.spec | 5 ++++-
client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py | 8 ++++++++
rel-eng/packages/rhn-client-tools | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
New commits:
commit e16a61a4ab5b3ce48e7ff11e924a6552f8a70207
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Nov 21 20:36:02 2011 +0100
Automatic commit of package [rhn-client-tools] release [1.6.35-1].
diff --git a/client/rhel/rhn-client-tools/rhn-client-tools.spec
b/client/rhel/rhn-client-tools/rhn-client-tools.spec
index f25299c..144499c 100644
--- a/client/rhel/rhn-client-tools/rhn-client-tools.spec
+++ b/client/rhel/rhn-client-tools/rhn-client-tools.spec
@@ -4,7 +4,7 @@ Group: System Environment/Base
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
URL:
https://fedorahosted.org/spacewalk
Name: rhn-client-tools
-Version: 1.6.34
+Version: 1.6.35
Release: 1%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -334,6 +334,9 @@ make -f Makefile.rhn-client-tools test
%endif
%changelog
+* Mon Nov 21 2011 Miroslav Suchý 1.6.35-1
+- 751760 - make errmsg as an alias to value
+
* Mon Nov 07 2011 Miroslav Suchý 1.6.34-1
- call parent's constructor
- 751760 - use attribute value, which our ancestor use
diff --git a/rel-eng/packages/rhn-client-tools b/rel-eng/packages/rhn-client-tools
index 2bbe3bc..ba492e4 100644
--- a/rel-eng/packages/rhn-client-tools
+++ b/rel-eng/packages/rhn-client-tools
@@ -1 +1 @@
-1.6.34-1 client/rhel/rhn-client-tools/
+1.6.35-1 client/rhel/rhn-client-tools/
commit 61d62a5a31cdfb5094987c2575a5b0a56e9c194d
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Nov 21 20:35:12 2011 +0100
751760 - make errmsg as an alias to value
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
index e1c5198..85f8db6 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
@@ -35,6 +35,14 @@ class Error(YumBaseError):
def __repr__(self):
self.log.log_me(self.value)
return self.value
+
+ def __getattribute__(self, name):
+ """ Spacewalk backend still use errmsg, let have errmsg as alias
to value """
+ if name == 'errmsg':
+ return self.value
+ else:
+ return YumBaseError.__getattribute__(self, name)
+
class RpmError(Error):
"""rpm itself raised an error condition"""