Let's not crash the entire script if the repo is present but empty

This is the case with :
https://src.fedoraproject.org/rpms/ntetris
https://src.fedoraproject.org/rpms/python-yubikey-manager
This commit is contained in:
Pierre-Yves Chibon 2017-08-17 11:00:55 +02:00
parent 4a4ad044f8
commit a0c61406f0

View file

@ -185,7 +185,10 @@ def branch_package(ns, pkgname, requested_branches, existing_branches):
exists = os.path.exists(new_place)
if not exists or 'master' not in existing_branches:
if not TEST_ONLY:
_invoke(SETUP_PACKAGE, [os.path.join(ns, pkgname)])
try:
_invoke(SETUP_PACKAGE, [os.path.join(ns, pkgname)])
except:
return
if ns == 'rpms':
old_place = os.path.join(GIT_FOLDER, '%s.git' % pkgname)
if not os.path.exists(old_place):