Commit fe27cf9b authored by James Antill's avatar James Antill

Allow --tmprepo=~/blah/... to be nice

parent b12be358
...@@ -126,6 +126,8 @@ def add_repos(base, log, tmp_repos, tvalidate, tlocvalidate, cleanup_dir_temp): ...@@ -126,6 +126,8 @@ def add_repos(base, log, tmp_repos, tvalidate, tlocvalidate, cleanup_dir_temp):
""" Add temporary repos to yum. """ """ Add temporary repos to yum. """
# Don't use self._splitArg()? ... or require URLs without commas? # Don't use self._splitArg()? ... or require URLs without commas?
for trepo in tmp_repos: for trepo in tmp_repos:
if trepo.startswith("~/"):
trepo = "%s%s" % (os.environ['HOME'], trepo[1:])
if trepo.startswith("/"): if trepo.startswith("/"):
trepo = "file:%s" % trepo trepo = "file:%s" % trepo
validate = tvalidate validate = tvalidate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment