Bug 1084434 - dnf history info <id> fails
Summary: dnf history info <id> fails
Keywords:
Status: CLOSED DUPLICATE of bug 1082230
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-04 10:44 UTC by czerny.jakub
Modified: 2014-04-04 11:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-04 11:48:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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