Description of problem: If I am in wrong directory or if make a typo in option of .spec file. Mock run like nothing happens and finish without error, just don't build nothing. Version-Release number of selected component (if applicable): mock-1.1.15-1.fc15.noarch How reproducible: cd rpmbuild/SPEC mock -r fedora-15-x86_64 --buildsrpm --spec SPECS/VirtualBox-OSE.spec --sources SOURCES.new/ ( note I'm in wrong dir SPEC/SPEC/VirtualBox-OSE.spec doesn't exist ) Actual results: No error , build.log have one line mock-1.1.15 Expected results: I expect error like this : ERROR: Cannot find/open spec file: SPECS/VirtualBox-OSE.spec. Error: Unable to open file Additional info: no error, confuse me a lot, I thought mock has stop buildsrpm , when I found that neither open spec file, nor SOURCES.
Heh. Here's some comments at the top of do_buildsrpm(): # TODO: validate spec path (exists) # TODO: validate SOURCES path (exists) I'll add an existance check to this code.
Created attachment 527766 [details] Patch to validate input arguments to --spec and --source Patch to add input validation to --spec and --source arguments
queued for mock-1.1.16 release
mock-1.1.16-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.16-1.fc15
mock-1.0.23-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.23-1.el5
mock-1.1.16-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.16-1.fc14
mock-1.1.16-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.16-1.el6
Package mock-1.1.16-1.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mock-1.1.16-1.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14382 then log in and leave karma (feedback).
mock-1.1.16-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.16-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.17-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.17-1.fc15
mock-1.1.17-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mock-1.1.17-1.fc16
mock-1.1.17-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.17-1.fc14
mock-1.0.24-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.24-1.el5
mock-1.1.17-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.17-1.el6
mock-1.1.17-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.17-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.
mock-1.0.24-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.17-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.17-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.