Description of problem: 'fedpkg clone' command creates module directory even on error, for example when passphrase key is wrong / not typed in / or while interrupted. Then, while trying to run the command again, there is an Error 17 message stating that file already exists, so one has to remove the directory manually. Version-Release number of selected component (if applicable): fedpkg-0.5.9.2-2.fc15.noarch How reproducible: Always Steps to Reproduce: $ fedpkg clone -B <module> Cloning into bare repository /*/<module>.git... Enter passphrase for key '/home/.../.ssh/id_rsa': $ echo $? 1 $ fedpkg clone -B <module> Could not clone: Could not create directory for module <module>: [Errno 17] File exists: '/*/<module>' Actual results: Creates directory on error. Expected results: Does not create directory on error.
I believe that git itself creates this directory, not fedpkg directly. I'm not sure if I want to alter git behavior and clean up the dir on error.
Wait, I'm mistaken. You're using clone -B which is different. Committed a fix for this in rpkg.
fedpkg-1.6-1.fc16,rpkg-1.10-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/fedpkg-1.6-1.fc16,rpkg-1.10-1.fc16
Package fedpkg-1.6-1.fc16, rpkg-1.10-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing fedpkg-1.6-1.fc16 rpkg-1.10-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16343/fedpkg-1.6-1.fc16,rpkg-1.10-1.fc16 then log in and leave karma (feedback).
fedpkg-1.6-1.fc16, rpkg-1.10-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
Thanks Jesse!