ensure parent dir when moving builds across volumes
This commit is contained in:
parent
7449f5a619
commit
58dfa04192
1 changed files with 1 additions and 0 deletions
|
|
@ -4098,6 +4098,7 @@ def change_build_volume(build, volume, strict=True):
|
|||
newdir = koji.pathinfo.build(binfo)
|
||||
dir_moves.append([olddir, newdir])
|
||||
for olddir, newdir in dir_moves:
|
||||
koji.ensuredir(os.path.dirname(newdir))
|
||||
shutil.copytree(olddir, newdir, symlinks=True)
|
||||
|
||||
# Second, update the db
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue