From 945714a9fbed1419f0522ded787c4d970534c3f8 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 31 Mar 2010 09:43:49 +0200 Subject: [PATCH] Accept also repositories specified by file:// --- src/pylorax/yumbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylorax/yumbase.py b/src/pylorax/yumbase.py index f88c9c15..c4110280 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