Skip to content

Commit

Permalink
local: fixed crashing when installing from rpm files (localinstall).
Browse files Browse the repository at this point in the history
Plug-in local crashed when running something like

	# dnf install xyz.rpm

The problem is now fixed.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
  • Loading branch information
qtonthat committed Dec 9, 2015
1 parent 9d453f5 commit 25a5c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/local.py
Expand Up @@ -116,9 +116,9 @@ def transaction(self):
return

for pkg in self.base.transaction.install_set:
if pkg.repo.pkgdir == repodir:
path = pkg.localPkg()
if os.path.dirname(path) == repodir:
continue
path = os.path.join(pkg.repo.pkgdir, pkg.location.split("/")[-1])
self.logger.debug(
"local: " + _("Copying '{}' to local repo").format(path))
try:
Expand Down

0 comments on commit 25a5c50

Please sign in to comment.