Bug 1118272 - search command show traceback when in a debug mode
Summary: search command show traceback when in a debug mode
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
: 1127764 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-10 10:37 UTC by Parag Nemade
Modified: 2014-09-30 23:42 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2014-07-30 10:53:12 UTC

Attachments (Terms of Use)

Description Parag Nemade 2014-07-10 10:37:36 UTC
Description of problem:
When I use command "dnf search ddnf" in debuglevel=10 then I see 2 issues in following output
$ dnf search ddnf
Config time: 0.006
cachedir: /var/tmp/dnf-parag-DNHGdp/x86_64/20
Loaded plugins: builddep, pkgprovides, langpacks, kickstart, noroot, Query, copr, playground, generate_completion_cache, debuginfo-install, langpacks, download, protected_packages
initialized BuildDep plugin
initialized Pkgprovides plugin
initialized Langpacks plugin
initialized Noroot plugin
Initialized Query plugin
initialized Copr plugin
initialized Playground plugin
initialized DebuginfoInstall plugin
initialized Langpacks plugin
initialized ProtectedPackages plugin
dnf version: 0.5.3
Command: dnf search ddnf 
Installroot: /
Base command: search
Extra commands: [u'ddnf']
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: local
not found deltainfo for: local for Fedora 20
repo: using cache for: google-chrome
not found deltainfo for: google-chrome
repo: using cache for: updates
hawkey sack setup time: 0.234
Searching Packages: 
Warning: No matches found for: ddnf
Cleaning up.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 83, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 133, in _main
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1168, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/search.py", line 103, in run
    return self._search(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/search.py", line 82, in _search
    raise dnf.exceptions.Error(_('No Matches found'))
Error: No Matches found
Error: No Matches found

Issue1) Why both in the output warning as well as error?
Issue2) Is it expected to show traceback in debug mode?

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. just use command "dnf search ddnf"
2. observe the output in debug mode

Comment 1 Ales Kozumplik 2014-07-10 13:07:54 UTC
Thanks, we'll check it out.

Comment 2 Ales Kozumplik 2014-07-30 06:56:38 UTC
Parag, what is meant by 'debug mode'? I am not sure that is something we support.

Comment 3 Ales Kozumplik 2014-07-30 07:09:45 UTC
Ah, debuglevel=10, I see.

Comment 4 Ales Kozumplik 2014-07-30 10:53:12 UTC
Fixed by 57edb9f.

Comment 5 Honza Silhan 2014-08-08 08:50:33 UTC
*** Bug 1127764 has been marked as a duplicate of this bug. ***

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