Skip to content

Commit

Permalink
Fix local package location xml path
Browse files Browse the repository at this point in the history
If a local package's name starts with the same character as the package's local path, the return XML filename is mangled.
  • Loading branch information
dekimsey committed Oct 21, 2019
1 parent 098cf29 commit 4c92fce
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 4c92fce

Please sign in to comment.