Skip to content

Commit

Permalink
Merge pull request #804 from jeremycline/relpath-instead-of-lstrip
Browse files Browse the repository at this point in the history
Distribution storage path no longer dependant on hostname and PRNG.
  • Loading branch information
jeremycline committed Feb 11, 2016
2 parents 21ad6be + 37cdf71 commit 209a1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/pulp_rpm/plugins/importers/yum/parse/treeinfo.py
Expand Up @@ -271,8 +271,8 @@ def download_files(self, tmp_dir, files):
]
raise DownloadFailed()
for report in listener.succeeded_reports:
location = report.destination.lstrip(tmp_dir)
yield report.destination, location.lstrip('/')
location = os.path.relpath(report.destination, tmp_dir)
yield report.destination, location

@staticmethod
def process_successful_download_reports(unit, reports):
Expand Down

0 comments on commit 209a1b4

Please sign in to comment.