Bug 864710

Summary: Does not support mass-installing via a command-line wildcard (QueryException: Query unsupported in this context.)
Product: [Fedora] Fedora Reporter: scorpio <gilles.liefferinckx>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:37ee175234b85f0bc718c0a4e5d7eb86176d4b43
Fixed In Version: dnf-0.2.14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:25:56 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: core_backtrace none

Description scorpio 2012-10-09 23:49:43 UTC
Description of problem:
Trying to install thunderbird-lightning package using cmd "dnf install thunderbird-lightning*"

Version-Release number of selected component:
dnf-0.2.13-1.gitda60a96.fc18

Additional info:
libreport version: 2.0.15
abrt_version:   2.0.14
cmdline:        /usr/bin/python /bin/dnf install thunderbird-lightning*
kernel:         3.6.1-1.fc18.x86_64

backtrace:
:__init__.py:865:buildHawkeyGoal:QueryException: Query unsupported in this context.
:
:Traceback (most recent call last):
:  File "/bin/dnf", line 35, in <module>
:    yummain.user_main(sys.argv[1:], exit_code=True)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 316, in user_main
:    errcode = main(args)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 181, in main
:    (result, resultmsgs) = base.buildTransaction()
:  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 897, in buildTransaction
:    goal = self.buildHawkeyGoal(self.tsInfo)
:  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 865, in buildHawkeyGoal
:    goal.install(query=q)
:QueryException: Query unsupported in this context.
:
:Local variables in innermost frame:
:q: <hawkey.Query object at 0x1723af0>
:tsInfo: <dnf.yum.transactioninfo.TransactionData instance at 0x1444170>
:self: <dnf.cli.cli.YumBaseCli object at 0x143db90>
:goal: <hawkey.Goal object at 0x1723cd0>
:push_userinstalled: False

Comment 1 scorpio 2012-10-09 23:49:46 UTC
Created attachment 624336 [details]
File: core_backtrace

Comment 2 Ales Kozumplik 2012-10-12 10:57:20 UTC
Hello and thank you for the bug report.

DNF does not yet support using wildcards with the install command. I am looking into adding the feature now.

Comment 3 scorpio 2012-10-12 11:48:01 UTC
Hello, great job anyway.
DNF lets me install a package easily that caused me unsolved dependencies with yum since weeks.

Comment 4 Ales Kozumplik 2012-10-17 12:11:07 UTC
(In reply to comment #3)
> Hello, great job anyway.
> DNF lets me install a package easily that caused me unsolved dependencies
> with yum since weeks.

Thanks, I am glad to hear that:)

Comment 5 Ales Kozumplik 2012-10-17 12:12:55 UTC
The wildcard support in installs has been added by commit 1706fce.

Comment 6 Fedora Update System 2012-10-17 17:30:01 UTC
dnf-0.2.14-2.git4831982.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dnf-0.2.14-2.git4831982.fc18

Comment 7 Fedora Update System 2012-10-18 03:34:29 UTC
Package dnf-0.2.14-2.git4831982.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.2.14-2.git4831982.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16373/dnf-0.2.14-2.git4831982.fc18
then log in and leave karma (feedback).

Comment 8 scorpio 2012-10-21 19:04:22 UTC
(In reply to comment #5)
> The wildcard support in installs has been added by commit 1706fce.

Works nice even on update
What's the equivalent of the "yum check-update" command? It does not accept it and i do not find in the help...

Thanks for the work

Comment 9 Ales Kozumplik 2012-10-22 08:16:29 UTC
> What's the equivalent of the "yum check-update" command? It does not accept
> it and i do not find in the help...

Hello, this has not been implemented yet---I've opened bug 864710 for it.

Comment 10 Ales Kozumplik 2012-10-22 08:20:15 UTC
> Hello, this has not been implemented yet---I've opened bug 864710 for it.

Sorry, that should be bug 868810.

Comment 11 Fedora Update System 2012-12-20 15:25:57 UTC
dnf-0.2.14-2.git4831982.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.