client/rhel/rhn-client-tools/src/up2date_client/tui.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 49a9ed5a85dd7af553f74ad2bd30d1dea77c9746
Author: James Bowes <jbowes(a)redhat.com>
Date: Tue Jun 2 10:40:51 2009 -0400
Support infinite available entitlements in TUI registration
getRemainingSubscriptions can return -1 if your account has an unlimited
amount of entitlements for the channel you're trying to subscribe to.
The rhn_register GTK+ gui knew about this, but the TUI did not.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/tui.py
b/client/rhel/rhn-client-tools/src/up2date_client/tui.py
index ff5f271..48cec38 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/tui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/tui.py
@@ -1562,7 +1562,8 @@ class Tui:
log.log_debug('subs is %s' % subs)
- if int(subs) > 0:
+ # -1 is infinite
+ if int(subs) != 0:
log.log_debug('we still have subscriptions %s' % str(subs))
# bz442930 : Should allow registration when login and password is changed
Show replies by date