Bug 1225225
Summary: | [abrt] python-dnf: repo.py:774:load:RepoError: Cache-only enabled but no cache for 'fedora' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | bibo | ||||||
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 22 | CC: | bugiardolr, ignatenko, jsilhan, lubomir.carik, mluscon, ngompa13, packaging-team-maint, pnemade, rholy, thearcher, tim.lauridsen, vmukhame | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/38b91446f1e56ffdc233c6d1aa66aa45681c946e | ||||||||
Whiteboard: | abrt_hash:d389eba9e72e7e9a83ce881feac8cbf1b9f67d54 | ||||||||
Fixed In Version: | 1.1.1-2.fc23 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-09-09 23:19:08 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
bibo
2015-05-26 21:18:45 UTC
Created attachment 1030181 [details]
File: backtrace
Created attachment 1030182 [details]
File: environ
*** Bug 1242078 has been marked as a duplicate of this bug. *** *** Bug 1248458 has been marked as a duplicate of this bug. *** Igor, can this be fixed, please? It should catch the error and ignore it. *** Bug 1252518 has been marked as a duplicate of this bug. *** diff --git a/dnf/cli/completion_helper.py b/dnf/cli/completion_helper.py index bf88983..9060751 100644 --- a/dnf/cli/completion_helper.py +++ b/dnf/cli/completion_helper.py @@ -19,6 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA +import dnf.exceptions import dnf.cli import re import sys @@ -184,7 +185,10 @@ def main(args): cli.register_command(CleanCompletionCommand) cli.register_command(HistoryCompletionCommand) cli.configure(args) - cli.run() + try: + cli.run() + except dnf.exceptions.Exception: + sys.exit(0) if __name__ == "__main__": try: Another user experienced a similar problem: Attempted to use tab-completion while doing a "dnf list libre<tabbing here" reporter: libreport-2.6.2 cmdline: python2 /usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py list list libre -d 0 -q -C event_log: 2015-08-26-22:09:10> ('report_uReport' completed successfully) executable: /usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py kernel: 4.1.6-200.fc22.x86_64 package: python-dnf-1.1.0-2.fc22 reason: repo.py:793:load:RepoError: Cache-only enabled but no cache for 'fedora' runlevel: N 5 type: Python uid: 1000 dnf-plugins-core-0.1.11-1.fc23 dnf-1.1.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743 dnf-1.1.1-1.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743 dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744 dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744 dnf-1.1.1-2.fc23 dnf-plugins-core-0.1.11-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743 dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743 dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugins-core dnf'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744 dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |