[lorax 2/4] Accept also repositories specified by file://

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

 



---
 src/pylorax/yumbase.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/yumbase.py b/src/pylorax/yumbase.py
index f88c9c1..c411028 100644
--- a/src/pylorax/yumbase.py
+++ b/src/pylorax/yumbase.py
@@ -31,7 +31,8 @@ def get_yum_base_object(installroot, repositories, mirrorlists=[],
     def sanitize_repo(repo):
         if repo.startswith("/"):
             return "file://{0}".format(repo)
-        elif repo.startswith("http://";) or repo.startswith("ftp://";):
+        elif (repo.startswith("http://";) or repo.startswith("ftp://";)
+              or repo.startswith("file://")):
             return repo
         else:
             return None
-- 
1.6.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