Only rebuild when transitioning between master and qt6

This commit is contained in:
Kovid Goyal 2021-11-24 13:35:46 +05:30
parent 58b35b8923
commit c996912602
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -19,7 +19,7 @@ os.chdir(base)
if flags == '1': # A branch checkout if flags == '1': # A branch checkout
prev_branch, cur_branch = list(map(get_branch_name, (prev_rev, current_rev))) prev_branch, cur_branch = list(map(get_branch_name, (prev_rev, current_rev)))
if 'qt6' in (prev_branch, cur_branch): if {prev_branch, cur_branch} == {'master', 'qt6'}:
os.rename('bypy/b/other-b', 'bypy/c') os.rename('bypy/b/other-b', 'bypy/c')
os.rename('bypy/b', 'bypy/c/other-b') os.rename('bypy/b', 'bypy/c/other-b')
os.rename('bypy/c', 'bypy/b') os.rename('bypy/c', 'bypy/b')