[PATCH] Reset curl object at some more places (#577899)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We need to add what commit 61e95e7817777a573f4b3434e01f09369e26bc86
does to some places.

For the bug's specific case missing it results in PYCURL ERROR 6
(Couldn't resolve host. The given remote host was not resolved.)
---
 iw/advanced_storage.py |    2 ++
 iw/task_gui.py         |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/iw/advanced_storage.py b/iw/advanced_storage.py
index b41166b..c39ff82 100644
--- a/iw/advanced_storage.py
+++ b/iw/advanced_storage.py
@@ -27,6 +27,7 @@ import iutil
 import network
 import storage.fcoe
 import storage.iscsi
+import urlgrabber.grabber
 
 def addFcoeDrive(anaconda):
     (dxml, dialog) = gui.getGladeWidget("fcoe-config.glade", "fcoeDialog")
@@ -104,6 +105,7 @@ def addIscsiDrive(anaconda):
     if not network.hasActiveNetDev():
         if not anaconda.intf.enableNetwork():
             return gtk.RESPONSE_CANCEL
+        urlgrabber.grabber.reset_curl_obj()
 
     (dxml, dialog) = gui.getGladeWidget("iscsi-config.glade", "iscsiDialog")
     gui.addFrame(dialog)
diff --git a/iw/task_gui.py b/iw/task_gui.py
index 126f8c5..8ff98d2 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -45,6 +45,7 @@ def setupRepo(anaconda, repo):
     if repo.needsNetwork() and not network.hasActiveNetDev():
         if not anaconda.intf.enableNetwork():
             return False
+        urlgrabber.grabber.reset_curl_obj()
     try:
         anaconda.backend.doRepoSetup(anaconda, thisrepo=repo.id, fatalerrors=False)
         anaconda.backend.doSackSetup(anaconda, thisrepo=repo.id, fatalerrors=False)
@@ -308,6 +309,7 @@ class RepoEditor:
                       "networking, but there was an error enabling the "
                       "network on your system."))
                 return False
+            urlgrabber.grabber.reset_curl_obj()
 
         import tempfile
         dest = tempfile.mkdtemp("", repo.name.replace(" ", ""), "/mnt")
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux