Bug 1084434

Summary: dnf history info <id> fails
Product: [Fedora] Fedora Reporter: czerny.jakub
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, packaging-team-maint, pnemade, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-04 11:48:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description czerny.jakub 2014-04-04 10:44:28 UTC
Description of problem:
calls like  
$ sudo dnf history info <id> 
fails

Version-Release number of selected component (if applicable):
$ dnf info dnf
Installed Packages
Name        : dnf
Arch        : noarch
Epoch       : 0
Version     : 0.4.19
Release     : 1.fc20
Size        : 2.5 M
Repo        : @System
From repo   : updates
...

$ sudo dnf info python
Installed Packages
Name        : python
Arch        : x86_64
Epoch       : 0
Version     : 2.7.5
Release     : 11.fc20
Size        : 79 k
Repo        : @System
From repo   : updates
...


How reproducible:
easily? (weird column)

Steps to Reproduce:
$ sudo dnf history info <id>
   where <id> is something relevant form first column of list printed be 'sudo dnf history'


Actual results:
$ sudo dnf history info 54
Transaction ID : 54
Begin time     : Fri Apr  4 12:13:22 2014
Begin rpmdb    : 2112:dbec7e40da1bf834a8d490d3830b4055da202e77
End time       :            12:13:24 2014 (2 seconds)
End rpmdb      : 2111:0a6b12dbf82629cb45935bab7045411f1564ee29
User           : ---
Return-Code    : Success
Command Line   : history undo 53
Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 75, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1378, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 2280, in run
    ret = self.output.historyInfoCmd(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1810, in historyInfoCmd
    self._historyInfoCmd(tid, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1931, in _historyInfoCmd
    if not isinstance(old.tid):
TypeError: isinstance expected 2 arguments, got 1

Expected results:
operation name and list of relevant packages

Additional info:

Comment 1 Ales Kozumplik 2014-04-04 11:48:31 UTC
Hello, thanks for the report, this has already been reported and fixed in out nightly builds: http://jenkins.cloud.fedoraproject.org/job/DNF/lastSuccessfulBuild/artifact/

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