Bug 726192
| Summary: | -y does not work with abrt-action-install-debuginfo-to-abrt-cache | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chris Meek <cmeek> | |
| Component: | abrt | Assignee: | Michal Toman <mtoman> | |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 15 | CC: | anton, cmeek, dvlasenk, fche, iprikryl, jmoskovc, kklic, mtoman, npajkovs, patrickm, pknirsch, rvokal, yann | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | abrt-2.0.3-4.fc15 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 737066 (view as bug list) | Environment: | ||
| Last Closed: | 2011-09-29 23:26:17 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 737066 | |||
|
Description
Chris Meek
2011-07-27 19:23:44 UTC
After briefly looking at the source code for abrt-action-install-debuginfo, it appears that the '-y' option is parsed from the command line, but nothing is done with it. Specifically, this section should check whether noninteractive is set as true or false:
if verbose != 0 or total_pkgs != 0:
print _("Packages to download: %u") % total_pkgs
question = _("Downloading %.2fMb, installed size: %.2fMb. Continue?") % (
todownload_size / (1024**2),
installed_size / (1024**2)
)
if not reportclient.ask_yes_no(question):
print _("Download cancelled by user")
return RETURN_OK
Fixed in git. If you need to use it now, you can try setting REPORT_CLIENT_RESPONSE=y env variable ("y" or whatever the response in your locale is).
While this does appear to fix the issue with passing -y, I am finding now that if I don't pass -y, it doesn't ask me if I want to continue. The verbose output is as follows: $ echo 67b1a5daf785521a097dd1f29fe9513f60f842f0 | /usr/bin/abrt-action-install-debuginfo-to-abrt-cache -v --ids=- abrt-action-trim-files -f 4096m:/var/cache/abrt-di Coredump references 1 debuginfo files, 1 of them are not installed enabled repo ['rawhide-debuginfo'] enabled repo ['updates-debuginfo'] enabled repo ['fedora-debuginfo'] enabled repo ['updates-testing-debuginfo'] Looking for needed packages in repositories Can't find packages for 0 debuginfo files Packages to download: 1 Downloading 0.20Mb, installed size: 0.87Mb Is this ok? [y/N] got eof, probably executed from helper, assuming - yes Downloading (1 of 1) gzip-debuginfo-1.4-3.fc15.x86_64.rpm: 100% Extracting /tmp/abrt-tmp-debuginfo-2011-08-10-10:18:31.9386/gzip-debuginfo-1.4-3.fc15.x86_64.rpm to /var/cache/abrt-di Extracting cpio from /tmp/abrt-tmp-debuginfo-2011-08-10-10:18:31.9386/gzip-debuginfo-1.4-3.fc15.x86_64.rpm cpio written OK keeprpms = False, removing /tmp/abrt-tmp-debuginfo-2011-08-10-10:18:31.9386/gzip-debuginfo-1.4-3.fc15.x86_64.rpm Caching files from unpacked.cpio made from gzip-debuginfo-1.4-3.fc15.x86_64.rpm files extracted OK Removing /tmp/abrt-tmp-debuginfo-2011-08-10-10:18:31.9386 For some reason it is getting eof when asking whether to continue, causing the download to continue. abrt-2.0.3-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/abrt-2.0.3-2.fc15 Package abrt-2.0.3-2.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing abrt-2.0.3-2.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/abrt-2.0.3-2.fc15 then log in and leave karma (feedback). Hi, I tried updating to abrt-2.0.3-2.fc15, but now when I try to run abrt-action-install-debuginfo-to-abrt-cache, it gives me this error:
$ echo 7b5ebf712404fe5a9dfe6552eae393f6b0b3b764 | /usr/bin/abrt-action-install-debuginfo-to-abrt-cache -y --ids=-
Traceback (most recent call last):
File "/usr/bin/abrt-action-install-debuginfo", line 14, in <module>
import reportclient
ImportError: No module named reportclient
Even if I just run this, I get the same error:
$ /usr/bin/abrt-action-install-debuginfo-to-abrt-cache
Traceback (most recent call last):
File "/usr/bin/abrt-action-install-debuginfo", line 14, in <module>
import reportclient
ImportError: No module named reportclient
I'll provide fix asap. abrt-2.0.3-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/abrt-2.0.3-3.fc15 Nikola, why not? Could the code prompt on /dev/tty instead of stdin? (In reply to comment #10) > Nikola, why not? Could the code prompt on /dev/tty instead of stdin? it doesn't work event with latest git tree abrt/libreport. I will clone the bug for the f15 and working on it abrt-2.0.3-4.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/abrt-2.0.3-4.fc15 *** Bug 738460 has been marked as a duplicate of this bug. *** abrt-2.0.3-4.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |