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:
parent
4a4ad044f8
commit
a0c61406f0
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue