| Summary: | Wrong exit status caused by PackageKit-command-not-found | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vojtech Vitek <vvitek> | ||||
| Component: | PackageKit | Assignee: | Richard Hughes <rhughes> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 17 | CC: | alonbl, dgunchev, elad, hripps, jonathan, mfranc, rbiba, rhughes, smparrish | ||||
| 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: | 2012-12-20 15:52:36 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Vojtech Vitek
2011-02-11 14:04:05 UTC
I can confirm this behaviour on f15: PackageKit-command-not-found-0.6.17-1.fc15.x86_64 Still broken on f16. Seems to be duplicate of 654204. Sorry about the noise. Still broken on f17. Since bug#654204 (2010-11-17) not fixed. This is a critical issue, the potential of breakage is huge. Created attachment 619445 [details]
[PATCH] command-not-found: Make sure we return 127 if we fail
This patch should fix the problem.
The reason this issue is critical is that it could cause scripts to think they succeeded running a command, when they actually failed due to it not being available. (In reply to comment #5) > This patch should fix the problem. I've pushed this to master: commit a5f8ba8c9090695ce2042053361893b10a34faf0 Author: Richard Hughes <richard> Date: Mon Oct 1 09:55:04 2012 +0100 cnf: Return with exit code 127 if we cancelled the PackageKit transaction Inspired from a patch by Elad Alfassa <elad>, many thanks. PackageKit-0.8.4-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/PackageKit-0.8.4-1.fc18 Package PackageKit-0.8.4-1.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 PackageKit-0.8.4-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-15147/PackageKit-0.8.4-1.fc18 then log in and leave karma (feedback). PackageKit-0.8.4-3.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/PackageKit-0.8.4-3.fc18 Can we have this as an update for fedora 17 as well? PackageKit-0.8.4-3.fc18, apper-0.8.0-0.7.20121002git.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |