Upon new package git creation, create symlink to old location
This commit is contained in:
parent
348e1323f4
commit
f7fa7a6822
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue