2 commits - client/rhel rel-eng/packages

Miroslav Suchý msuchy at fedoraproject.org
Sat Jun 16 17:43:06 UTC 2012


 client/rhel/rhn-client-tools/rhn-client-tools.spec               |    5 ++++-
 client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py |    5 ++++-
 rel-eng/packages/rhn-client-tools                                |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 68bf625a426a823feb208451d23f39df86c1c75e
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Sat Jun 16 19:42:54 2012 +0200

    Automatic commit of package [rhn-client-tools] release [1.8.9-1].

diff --git a/client/rhel/rhn-client-tools/rhn-client-tools.spec b/client/rhel/rhn-client-tools/rhn-client-tools.spec
index 110196c..c36ef50 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.8.8
+Version: 1.8.9
 Release: 1%{?dist}
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
@@ -339,6 +339,9 @@ make -f Makefile.rhn-client-tools test
 %endif
 
 %changelog
+* Sat Jun 16 2012 Miroslav Suchý <msuchy at redhat.com> 1.8.9-1
+- allow to set value on Debian
+
 * Sat Jun 16 2012 Miroslav Suchý <msuchy at redhat.com> 1.8.8-1
 - workaround problem on suse and debian where you inherit from two same classes
 
diff --git a/rel-eng/packages/rhn-client-tools b/rel-eng/packages/rhn-client-tools
index eb2e1ed..cf98028 100644
--- a/rel-eng/packages/rhn-client-tools
+++ b/rel-eng/packages/rhn-client-tools
@@ -1 +1 @@
-1.8.8-1 client/rhel/rhn-client-tools/
+1.8.9-1 client/rhel/rhn-client-tools/


commit 7000b97ef84236ded3566334cc8a75801bb607c6
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Sat Jun 16 19:37:50 2012 +0200

    allow to set value on Debian
    
    addressing:
      File "/usr/sbin/rhn_register", line 76, in <module>
        app.run()
      File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
        sys.exit(self.main() or 0)
      File "/usr/sbin/rhn_register", line 58, in main
        ui.main()
      File "/usr/share/rhn/up2date_client/tui.py", line 1269, in main
        tui.run()
      File "/usr/share/rhn/up2date_client/tui.py", line 1227, in run
        result = win.run()
      File "/usr/share/rhn/up2date_client/tui.py", line 236, in run
        tui_call_wrapper(self.screen, rhnreg.getCaps)
      File "/usr/share/rhn/up2date_client/tui.py", line 82, in tui_call_wrapper
        results = func(*params)
      File "/usr/share/rhn/up2date_client/rhnreg.py", line 239, in getCaps
        s.capabilities.validate()
      File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
        return rpcServer.doCall(method, *args, **kwargs)
      File "/usr/share/rhn/up2date_client/rpcServer.py", line 206, in doCall
        raise up2dateErrors.CommunicationError(e.args[1]), None, sys.exc_info()[2]
      File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 49, in __init__
        YumBaseError.__init__(self, errmsg)
      File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 35, in __init__
        self.value = errmsg
      File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 78, in __setattr__
        YumBaseError.__setattr__(self, name, value)
      File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 39, in __setattr__
        raise AttributeError(_("class %s has no attribute '%s'") % (self.__class__.__name__, name))
    <type 'exceptions.AttributeError'>: class CommunicationError has no attribute '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 19052ae..39174a4 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
@@ -36,7 +36,10 @@ if getPlatform() == 'deb' or dist()[0] == 'SuSE':
         def __getattr__(self, name):
             raise AttributeError(_("class %s has no attribute '%s'") % (self.__class__.__name__, name))
         def __setattr__(self, name, value):
-            raise AttributeError(_("class %s has no attribute '%s'") % (self.__class__.__name__, name))
+            if name in ['errmsg', 'value']:
+                self.__dict__['value'] = value
+            else:
+                self.__dict__[name] = value
 else:
     from yum.Errors import YumBaseError
 




More information about the spacewalk-commits mailing list