Navigation Menu

Skip to content

Commit

Permalink
No trailing slash for mirrorlist case
Browse files Browse the repository at this point in the history
closes #3310
https://pulp.plan.io/issues/3310

(cherry picked from commit c180a8c)
  • Loading branch information
goosemania authored and pcreech committed Jan 23, 2018
1 parent c99cd25 commit 41579a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/pulp_rpm/plugins/importers/yum/sync.py
Expand Up @@ -126,6 +126,7 @@ def sync_feed(self):
:rtype: list
"""
repo_url = self.config.get(importer_constants.KEY_FEED)
mirrorlist_url = repo_url
if repo_url:
repo_url = self._url_modify(repo_url, ensure_trailing_slash=True)
self.tmp_dir = tempfile.mkdtemp(dir=self.working_dir)
Expand All @@ -145,7 +146,7 @@ def sync_feed(self):
pass

# Try treating it as a mirrorlist.
urls = self._parse_as_mirrorlist(repo_url)
urls = self._parse_as_mirrorlist(mirrorlist_url)
if urls:
# set flag to True so when we would iterate through list of urls
# we would not skip repomd steps
Expand Down

0 comments on commit 41579a9

Please sign in to comment.