Created attachment 958621 [details] single file for --source option fix Description of problem: Mock has an option --source, which can be "either a single file or a directory". Trying to use it as single file results in error. Version-Release number of selected component (if applicable): 1.2.2-1 How reproducible: always Steps to Reproduce: 1.Run something like: mock --buildsrpm --spec /home/plageat/test_pkg/mock/mock.spec --sources /home/plageat/test_pkg/mock/src/mock-1.2.1.tar.xz Actual results: ERROR: Input sources directory does not exist: /home/plageat/test_pkg/mock/src/mock-1.2.1.tar.xz Expected results: no errors Additional info: Patch for correct option checking attached.
Commited as 67e6aa6 Thanks for contribution.
mock-1.2.3-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc21
mock-1.2.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc20
mock-1.2.3-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.3-1.el7
mock-1.2.3-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.3-1.el6
Package mock-1.2.3-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mock-1.2.3-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-16285/mock-1.2.3-1.fc21 then log in and leave karma (feedback).
mock-1.2.3-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.3-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.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.2.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.