diff --git a/roles/distgit/templates/pkgdb_sync_git_branches.py b/roles/distgit/templates/pkgdb_sync_git_branches.py index 60170a6158..1cbe94d3a5 100644 --- a/roles/distgit/templates/pkgdb_sync_git_branches.py +++ b/roles/distgit/templates/pkgdb_sync_git_branches.py @@ -220,7 +220,8 @@ def branch_package(ns, pkgname, requested_branches, existing_branches): _invoke(SETUP_PACKAGE, [os.path.join(ns, pkgname)]) if ns == 'rpms': old_place = os.path.join(GIT_FOLDER, '%s.git' % pkgname) - os.symlink(new_place, old_place) + if not os.path.exists(old_place): + os.symlink(new_place, old_place) # SETUP_PACKAGE creates master if 'master' in requested_branches: requested_branches.remove('master')