Bug 1136223

Summary: [abrt] dnf: packages.py:76:parsePackages:TypeError: unsupported operand type(s) for |=: 'set' and 'list'
Product: [Fedora] Fedora Reporter: Nils Philippsen <nphilipp>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jsilhan, jzeleny, nphilipp, pnemade, tim.lauridsen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/27839f0fd834bc08555f763dbde74cb32e428e2f
Whiteboard: abrt_hash:63571619b1c8cd571ce259c5e4f7b2efdef724c3
Fixed In Version: dnf-0.6.2 dnf-0.6.4-7.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 06:53:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Nils Philippsen 2014-09-02 08:10:28 UTC
Description of problem:
root@gibraltar:~> dnf history info NetworkManager
Failed to synchronize cache for repo 'fedora-chromium-stable' from '[u'http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-21/x86_64/']': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Transaction ID : 286
Begin time     : Tue Sep  2 10:07:32 2014
Begin rpmdb    : 5342:9b49cb4f1924cda96212d3049e7d34d37e50e7db
End time       :            10:07:44 2014 (12 seconds)
End rpmdb      : 5343:ad4803a71bc8cdc97f36a9da7c7a58f973ac5783
User           : Nils Philippsen <nils>
Return-Code    : Success
Command Line   : update --exclude=httpd
Transaction performed with:
    Installed     dnf-0.6.0-1.fc21.noarch        @fedora
    Installed     rpm-4.12.0-0.rc1.1.fc21.x86_64 @fedora
Packages Altered:
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 182, 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 134, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1072, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 1232, in run
    ret = self.output.historyInfoCmd(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1474, in historyInfoCmd
    self._historyInfoCmd(tid, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1612, in _historyInfoCmd
    self.historyInfoCmdPkgsAltered(old, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1687, in historyInfoCmdPkgsAltered
    x, m, u = dnf.yum.packages.parsePackages([hpkg], pats)
  File "/usr/lib/python2.7/site-packages/dnf/yum/packages.py", line 76, in parsePackages
    exactmatch |= pkgdict[command]
TypeError: unsupported operand type(s) for |=: 'set' and 'list'
root@gibraltar:~>

Version-Release number of selected component:
dnf-0.6.0-1.fc21

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python -OO /bin/dnf history info NetworkManager
executable:     /bin/dnf
kernel:         3.16.1-301.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
packages.py:76:parsePackages:TypeError: unsupported operand type(s) for |=: 'set' and 'list'

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 182, 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 134, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1072, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 1232, in run
    ret = self.output.historyInfoCmd(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1474, in historyInfoCmd
    self._historyInfoCmd(tid, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1612, in _historyInfoCmd
    self.historyInfoCmdPkgsAltered(old, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1687, in historyInfoCmdPkgsAltered
    x, m, u = dnf.yum.packages.parsePackages([hpkg], pats)
  File "/usr/lib/python2.7/site-packages/dnf/yum/packages.py", line 76, in parsePackages
    exactmatch |= pkgdict[command]
TypeError: unsupported operand type(s) for |=: 'set' and 'list'

Local variables in innermost frame:
pkgdict: {u'networkmanager-0.9.10.0-4.git20140704.fc21.x86_64': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'networkmanager.x86_64': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'networkmanager-0.9.10.0-4.git20140704.fc21': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'1:networkmanager-0.9.10.0-4.git20140704.fc21.x86_64': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'networkmanager-0.9.10.0': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'networkmanager-1:0.9.10.0-4.git20140704.fc21.x86_64': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>], u'networkmanager': [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>]}
pkgs: [<YumHistoryPackageState : 1:NetworkManager-0.9.10.0-4.git20140704.fc21.x86_64 (0x7f08eb70aa50)>]
exactmatch: set([])
command: u'networkmanager'
unmatched: set([])
usercommands: [u'NetworkManager']
casematch: 0
matched: set([])

Comment 1 Nils Philippsen 2014-09-02 08:10:32 UTC
Created attachment 933621 [details]
File: backtrace

Comment 2 Nils Philippsen 2014-09-02 08:10:33 UTC
Created attachment 933622 [details]
File: environ

Comment 3 Honza Silhan 2014-09-03 10:27:30 UTC
Hi, thanks for the report.

Comment 4 Honza Silhan 2014-09-05 10:52:25 UTC
Fixed in the upstream.

Comment 5 Nils Philippsen 2014-09-09 14:34:32 UTC
Hi Jan, do you plan to submit this version as an update for F-21?

Comment 6 Honza Silhan 2014-09-10 10:40:26 UTC
Hi, dnf-0.6.2 release with f21 update will be in a week or so. If you are impatient you can install nightly build.

Comment 7 Nils Philippsen 2014-09-10 11:24:27 UTC
Ahh, I misunderstood this:

> Fixed In Version: dnf-0.6.2

to mean that 0.6.2 were released already.

Comment 8 Parag Nemade 2014-09-10 13:14:01 UTC
I too used to confuse with what dnf developers are following but now used to with it. My understanding is that when you fix package (checkin fixes in dist-git of dnf package and build a new package on koji) you should change the bug status to MODIFIED and add built n-v-r in "Fixed In version" field.

Comment 9 Nils Philippsen 2014-09-10 13:25:19 UTC
Not so sure about manually setting the "Fixed in version" field, as bodhi does it automatically when pushing updates to stable.

Comment 10 Fedora Update System 2014-10-05 17:42:05 UTC
dnf-0.6.2-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/dnf-0.6.2-1.fc21

Comment 11 Fedora Update System 2014-10-06 05:03:42 UTC
Package dnf-0.6.2-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.6.2-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12254/dnf-0.6.2-1.fc21
then log in and leave karma (feedback).

Comment 12 Honza Silhan 2015-07-20 11:14:54 UTC
wasn't properly closed by Fedora Update System.

Comment 13 Fedora Update System 2015-08-28 18:53:48 UTC
dnf-0.6.4-6.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14323

Comment 14 Fedora Update System 2015-09-29 11:19:37 UTC
dnf-0.6.4-7.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-9bcdcdc46b

Comment 15 Fedora Update System 2015-10-02 18:52:26 UTC
dnf-0.6.4-7.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update dnf'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-9bcdcdc46b

Comment 16 Fedora Update System 2015-10-13 06:52:24 UTC
dnf-0.6.4-7.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.