Skip to content

Commit 4c92fce

Browse files
authored
Fix local package location xml path
If a local package's name starts with the same character as the package's local path, the return XML filename is mangled.
1 parent 098cf29 commit 4c92fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yum/packages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ def _return_remote_location(self):
23022302

23032303
# if we start seeing fullpaths in the location tag - this is the culprit
23042304
if self._reldir and self.localpath.startswith(self._reldir):
2305-
relpath = self.localpath.replace(self._reldir, '')
2305+
relpath = self.localpath.replace(self._reldir, '', 1)
23062306
if relpath[0] == '/': relpath = relpath[1:]
23072307
else:
23082308
relpath = self.localpath

0 commit comments

Comments
 (0)