Skip to content

Commit

Permalink
Merge pull request #109 from dekimsey/patch-1
Browse files Browse the repository at this point in the history
Fix local package location xml href
  • Loading branch information
james-antill committed Oct 22, 2019
2 parents 098cf29 + 4c92fce commit 3b07f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yum/packages.py
Expand Up @@ -2302,7 +2302,7 @@ def _return_remote_location(self):

# if we start seeing fullpaths in the location tag - this is the culprit
if self._reldir and self.localpath.startswith(self._reldir):
relpath = self.localpath.replace(self._reldir, '')
relpath = self.localpath.replace(self._reldir, '', 1)
if relpath[0] == '/': relpath = relpath[1:]
else:
relpath = self.localpath
Expand Down

0 comments on commit 3b07f4c

Please sign in to comment.