client/rhel/rhn-client-tools/rhn-client-tools.spec | 5 ++++-
client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py | 6 ++++++
rel-eng/packages/rhn-client-tools | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
New commits:
commit e1724ca83dcb9eab6260a3425f57641f6adf934a
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Nov 21 21:51:49 2011 +0100
Automatic commit of package [rhn-client-tools] release [1.6.36-1].
diff --git a/client/rhel/rhn-client-tools/rhn-client-tools.spec
b/client/rhel/rhn-client-tools/rhn-client-tools.spec
index 144499c..84a455d 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.35
+Version: 1.6.36
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.36-1
+- 751760 - make errmsg as an alias to value (for setter too)
+
* Mon Nov 21 2011 Miroslav Suchý 1.6.35-1
- 751760 - make errmsg as an alias to value
diff --git a/rel-eng/packages/rhn-client-tools b/rel-eng/packages/rhn-client-tools
index ba492e4..9849c30 100644
--- a/rel-eng/packages/rhn-client-tools
+++ b/rel-eng/packages/rhn-client-tools
@@ -1 +1 @@
-1.6.35-1 client/rhel/rhn-client-tools/
+1.6.36-1 client/rhel/rhn-client-tools/
commit 369c6fb728bf69c742d1f526244c753b401e0c7a
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Nov 21 20:54:50 2011 +0100
751760 - make errmsg as an alias to value (for setter too)
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 85f8db6..97d9ac3 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
@@ -43,6 +43,12 @@ class Error(YumBaseError):
else:
return YumBaseError.__getattribute__(self, name)
+ def __setattr__(self, name, value):
+ """ Spacewalk backend still use errmsg, let have errmsg as alias
to value """
+ if name == 'errmsg':
+ self.__dict__['value'] = value
+ else:
+ YumBaseError.__setattr__(self, name, value)
class RpmError(Error):
"""rpm itself raised an error condition"""