Blame SOURCES/yum-rhn-plugin-2.0.1-1-to-yum-rhn-plugin-2.0.1-2-el7.patch

d51bd9
diff --git a/man/rhnplugin.conf.5 b/man/rhnplugin.conf.5
d51bd9
index fa29e7c..0de8bc1 100644
d51bd9
--- a/man/rhnplugin.conf.5
d51bd9
+++ b/man/rhnplugin.conf.5
d51bd9
@@ -37,6 +37,9 @@ Either `0' or `1'. Determines whether gpg signature checking will be performed
d51bd9
 on packages coming from Spacewalk/Red Hat Satellite. Default value is `1'. If this option
d51bd9
 is not set, the value from \fByum.conf\fP(5) will be used.
d51bd9
 
d51bd9
+.IP \fBtimeout\fR
d51bd9
+The amount of time (in seconds) that you want to wait for a response before timing out. If this option is not set, the value from \fByum.conf\fP(5) will be used.
d51bd9
+
d51bd9
 .SH FILES
d51bd9
 
d51bd9
 .IP \fI/etc/yum/pluginconf.d/rhnplugin.conf\fP
d51bd9
diff --git a/rhnplugin.conf b/rhnplugin.conf
d51bd9
index 076aa38..4522165 100644
d51bd9
--- a/rhnplugin.conf
d51bd9
+++ b/rhnplugin.conf
d51bd9
@@ -1,6 +1,7 @@
d51bd9
 [main]
d51bd9
 enabled = 0
d51bd9
 gpgcheck = 1
d51bd9
+timeout = 120
d51bd9
 
d51bd9
 # You can specify options per channel, e.g.:
d51bd9
 #
d51bd9
diff --git a/rhnplugin.py b/rhnplugin.py
d51bd9
index 0d3e80a..3cbd355 100644
d51bd9
--- a/rhnplugin.py
d51bd9
+++ b/rhnplugin.py
d51bd9
@@ -66,7 +66,7 @@ def init_hook(conduit):
d51bd9
     RHN_DISABLED = _("Red Hat Satellite or RHN Classic support will be disabled.")
d51bd9
 
d51bd9
     conduit_conf = conduit.getConf()
d51bd9
-    timeout = conduit_conf.timeout
d51bd9
+    timeout = conduit.confFloat('main', 'timeout', conduit_conf.timeout)
d51bd9
 
d51bd9
     if not os.geteuid()==0:
d51bd9
         # If non-root notify user Spacewalk repo not accessible
d51bd9
@@ -269,7 +269,8 @@ def posttrans_hook(conduit):
d51bd9
     """ Post rpm transaction hook. We update the RHN profile here. """
d51bd9
     global rhn_enabled
d51bd9
     if rhn_enabled:
d51bd9
-        timeout = conduit.getConf().timeout
d51bd9
+        timeout = conduit.confFloat('main', 'timeout',
d51bd9
+                conduit.getConf().timeout)
d51bd9
         up2date_cfg = config.initUp2dateConfig()
d51bd9
         if up2date_cfg.has_key('writeChangesToLog') and up2date_cfg['writeChangesToLog'] == 1:
d51bd9
             ts_info = conduit.getTsInfo()
d51bd9
diff --git a/yum-rhn-plugin.spec b/yum-rhn-plugin.spec
d51bd9
index 54a943d..5178223 100644
d51bd9
--- a/yum-rhn-plugin.spec
d51bd9
+++ b/yum-rhn-plugin.spec
d51bd9
@@ -1,7 +1,7 @@
d51bd9
 Summary: Spacewalk support for yum
d51bd9
 Name: yum-rhn-plugin
d51bd9
 Version: 2.0.1
d51bd9
-Release: 1%{?dist}
d51bd9
+Release: 2%{?dist}
d51bd9
 License: GPLv2
d51bd9
 Group: System Environment/Base
d51bd9
 Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
d51bd9
@@ -70,6 +70,9 @@ fi
d51bd9
 %doc LICENSE
d51bd9
 
d51bd9
 %changelog
d51bd9
+* Mon Sep 09 2013 Stephen Herr <sherr@redhat.com> 2.0.1-2
d51bd9
+- Resolves: #1006045 - keep yum-rhn-plugins higher default timeout
d51bd9
+
d51bd9
 * Wed Jul 17 2013 Tomas Kasparek <tkasparek@redhat.com> 2.0.1-1
d51bd9
 - Bumping package versions for 2.0.
d51bd9