Bug 1278631 - Installing packages via file path or URL causes local plugin to crash
Summary: Installing packages via file path or URL causes local plugin to crash
Keywords:
Status: CLOSED DUPLICATE of bug 1226766
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-extras
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-06 02:47 UTC by Garrett Holmstrom
Modified: 2015-11-09 13:16 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-09 13:16:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Garrett Holmstrom 2015-11-06 02:47:23 UTC
Description of problem:
If the local plugin is installed, when I try to install a package by passing its location to dnf at the command line dnf crashes immediately after installing packages due to a KeyError for the "@commandline" repo.


Version-Release number of selected component (if applicable):
python3-dnf-plugins-extras-local-0.0.11-1.fc23.noarch
python-dnf-plugins-extras-local-0.0.11-1.fc22.noarch


Steps to Reproduce:
1.  dnf install dnf-plugins-extras-local
2.  dnf install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm

Actual results:
% sudo dnf install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
Last metadata expiration check performed 2:46:16 ago on Thu Nov  5 15:29:41 2015.
Dependencies resolved.
========================================================================
 Package                  Arch       Version     Repository        Size
========================================================================
Installing:
 adobe-release-x86_64     noarch     1.0-1       @commandline     4.2 k

Transaction Summary
========================================================================
Install  1 Package

Total size: 4.2 k
Installed size: 1.9 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : adobe-release-x86_64-1.0-1.noarch                   1/1 
  Verifying   : adobe-release-x86_64-1.0-1.noarch                   1/1 

Installed:
  adobe-release-x86_64.noarch 1.0-1                                     

Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 198, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 144, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 183, in resolving
    base.plugins.run_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 157, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python2.7/site-packages/dnf-plugins/local.py", line 119, in transaction
    if pkg.repo.pkgdir == repodir:
  File "/usr/lib/python2.7/site-packages/dnf/package.py", line 115, in repo
    return self.base.repos[self.reponame]
KeyError: u'@commandline'


Additional info:
This occurs on both Fedora 22 and 23.

Packages are installed, but not copied to the local package repo.

Comment 1 Honza Silhan 2015-11-09 13:16:58 UTC

*** This bug has been marked as a duplicate of bug 1226766 ***


Note You need to log in before you can comment on or make changes to this bug.