diff --git a/roles/distgit/templates/pkgdb_sync_git_branches.py b/roles/distgit/templates/pkgdb_sync_git_branches.py index fdc1264c6b..92fa5ec4b4 100644 --- a/roles/distgit/templates/pkgdb_sync_git_branches.py +++ b/roles/distgit/templates/pkgdb_sync_git_branches.py @@ -217,6 +217,10 @@ def branch_package(ns, pkgname, requested_branches, existing_branches): if not exists or 'master' not in existing_branches: if not TEST_ONLY: _invoke(SETUP_PACKAGE, [os.path.join(ns, pkgname)]) + if ns == 'rpms': + old_place = os.path.exists(os.path.join( + GIT_FOLDER, '%s.git' % pkgname)) + os.symlink(exists, old_place) # SETUP_PACKAGE creates master if 'master' in requested_branches: requested_branches.remove('master')