Description of problem: The -r option of mock allows custom config files to be used, but the bash completion doesn't support that. Version-Release number of selected component (if applicable): mock-1.2.21-1.fc24.noarch How reproducible: Always. Steps to Reproduce: 1. cp /etc/mock/default.cfg /tmp/mock.cfg 2. mock -r /tmp/mock<TAB> 3. Be disappoint. Actual results: Nothin' Expected results: Complete the filename. Additional info: If there was no custom completion for mock then this would work fine, because bash would just expand filenames as normal. So the custom completion actually makes things worse, by artificially limiting what can be used as an argument to the -r option. Instead of only considering files in /etc/mock the completion should attempt to match the names of directories and files ending in .cfg e.g. -r /tm<TAB> should complete to /tmp (because there could be some .cfg file under that directory) e.g. -r /tmp/moc<TAB> should complete to /tmp/mock.cfg if that is a .cfg file e.g. -r /etc/fsta<TAB> should not complete to /etc/fstab because that's not a .cfg file e.g. -r ./<TAB><TAB> should show the names of all directories and all .cfg files under $PWD
I've implemented this and created an upstream pull request to add it: https://github.com/rpm-software-management/mock/pull/20
Merged as 232e9b8
mock-1.3.3-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1c15f1fddc
mock-1.3.3-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5947ef9fd1
mock-1.3.3-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-77cb570c74
mock-1.3.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-3b5bb282f4
mock-1.3.3-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-1c15f1fddc
mock-1.3.3-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-3b5bb282f4
mock-1.3.3-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-77cb570c74
mock-1.3.3-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5947ef9fd1
mock-1.3.3-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.3.3-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.3.3-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.3.3-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.