diff --git a/dnf/package.py b/dnf/package.py index fc89cf98a8..5912f79c16 100644 --- a/dnf/package.py +++ b/dnf/package.py @@ -300,6 +300,8 @@ def remote_location(self, schemes=('http', 'ftp', 'file', 'https')): """ if self._from_system or self._from_cmdline: return None + if self.baseurl: + return os.path.join(self.baseurl, self.location.lstrip("/")) return self.repo.remote_location(self.location, schemes) def _is_local_pkg(self):