[rhel7-branch 2/3] Fix nfs mountpoint removal (#1246212)

bcl installerbot-noreply at redhat.com
Thu Aug 13 23:14:15 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

It was removing too many characters.

Related: rhbz#1246212
---
 pyanaconda/packaging/yumpayload.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 37458df..57c9347 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -906,8 +906,8 @@ def removeRepo(self, repo_id):
         with _yum_lock:
             yum_repo = self._yum.repos.getRepo(repo_id)
             ks_repo = self.getAddOnRepo(repo_id)
-            if yum_repo and ks_repo and ks_repo.baseurl.startswith("nfs:"):
-                mountpoint = yum_repo.baseurl[0][7:]    # strip leading "file://"
+            if yum_repo and ks_repo and ks_repo.baseurl.startswith("nfs://"):
+                mountpoint = yum_repo.baseurl[0][6:]    # strip leading "nfs://"
 
         self._removeYumRepo(repo_id)
         super(YumPayload, self).removeRepo(repo_id)


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/d5fcd6cdad449b58db17c3a46f4158e8fa02681b


More information about the anaconda-patches mailing list