Bug 1227230
Summary: | dnf stops if an unavailable package is present in the "install" command list, but not when "list" is used. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ankur Sinha (FranciscoD) <sanjay.ankur> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-06-02 15:25:17 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
Ankur Sinha (FranciscoD)
2015-06-02 08:24:18 UTC
Hello, this is not a bug; it's a feature.
Do I understand it correctly that the package "gstreamer1-plugin-crystalhd" will never exist and you (or bash if you wish) put it there just as a side effect of having a simpler expression? Why do you think that this
> is not how bash commands usually work
? E.g. "touch" and "rm" fails as well:
$ touch a
$ rm {a,b}
rm: cannot remove ‘b’: No such file or directory
$ echo $?
1
I'd rather consider the behavior of "dnf list" as a bug.
Ah, no that isn't what I'm saying. They "fail" in the sense that they give an error code. However, the do carry out the requested operation on the arguments that do exist. For example: [asinha@cs-as14aho-2-herts-ac-uk ~]$ touch a [asinha@cs-as14aho-2-herts-ac-uk ~]$ rm {b,a} rm: cannot remove ‘b’: No such file or directory rm: remove regular empty file ‘a’? y [asinha@cs-as14aho-2-herts-ac-uk ~]$ echo $? 1 [asinha@cs-as14aho-2-herts-ac-uk ~]$ What dnf does is - it *stops* at "b" completely - the first argument that isn't available - and doesn't go on to "a" at all. This is what I consider a bug :) I hope that clarifies the issue? Cheers, Ankur Got it. Anyway, I believe that this is another case. In DNF, we consider the request as a single transaction. If one of the packages cannot be installed, the transaction cannot be performed. E.g. a script would not be able to determine which packages were skipped otherwise (without parsing the output). But, let's focus on your use case. Do I understand it correctly that the package "gstreamer1-plugin-crystalhd" will never exist and you (or bash if you wish) put it there just as a side effect of having a simpler expression? Or is it just that the package is not available at the moment? It doesn't exist (unless a package of this name comes up in the future, of course), and yes, it's only turns up as a side effect of the simpler expression. OK, would a "skip-install" plugin (which skips packages that cannot be installed) work for you? (bug 1197456) Yeah. If I understand how DNF works, the two cases appear to be the same, so it would work here too. Thanks :) *** This bug has been marked as a duplicate of bug 1197456 *** |