new-updates-sync: Sync the srpms to source/tree/ dir

This will fix syncing the srpms to source/tree/ dir instead of
source/ dir

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2021-06-29 23:37:32 -04:00
parent 2712b45bfd
commit 049412ee15

View file

@ -312,7 +312,10 @@ def sync_single_repo(release, repo):
for archdef in RELEASES[release]['repos'][repo]['to']:
for arch in archdef['arches']:
dest_path = os.path.join(archdef['dest'], arch)
if 'source' in arch:
dest_path = os.path.join(archdef['dest'], arch, 'tree')
else
dest_path = os.path.join(archdef['dest'], arch)
results.append(sync_single_repo_arch(release, repo, arch, dest_path))
stats = collect_stats(results)