Hi,
Can I get +1s to update the updates sync script to sync out Pungi-generated drpms?
Patrick
diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index e3439a0a0..c1c4378d5 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -205,6 +205,8 @@ def sync_single_repo_arch(release, repo, arch, dest_path):
results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path))) + results.append(rsync(os.path.join(source_path, maindir, 'drpms'), + os.path.join(dest_path))) if arch != 'source': results.append(rsync(os.path.join(source_path, 'debug', 'tree', 'Packages'), os.path.join(dest_path, 'debug'))) @@ -220,6 +222,9 @@ def sync_single_repo_arch(release, repo, arch, dest_path): results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path), delete=True)) + results.append(rsync(os.path.join(source_path, maindir, 'drpms'), + os.path.join(dest_path)), + delete=True)
return collect_stats(results)
On Sat, Nov 04, 2017 at 08:13:57PM +0100, Patrick Uiterwijk wrote:
Hi,
Can I get +1s to update the updates sync script to sync out Pungi-generated drpms?
Patrick
diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index e3439a0a0..c1c4378d5 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -205,6 +205,8 @@ def sync_single_repo_arch(release, repo, arch, dest_path):
results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path)))
- results.append(rsync(os.path.join(source_path, maindir, 'drpms'),
if arch != 'source': results.append(rsync(os.path.join(source_path, 'debug',os.path.join(dest_path)))
'tree', 'Packages'), os.path.join(dest_path, 'debug'))) @@ -220,6 +222,9 @@ def sync_single_repo_arch(release, repo, arch, dest_path): results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path), delete=True))
- results.append(rsync(os.path.join(source_path, maindir, 'drpms'),
os.path.join(dest_path)),
delete=True)
+1 for me
Pierre
+1 fix it
On 4 November 2017 at 15:13, Patrick Uiterwijk puiterwijk@redhat.com wrote:
Hi,
Can I get +1s to update the updates sync script to sync out Pungi-generated drpms?
Patrick
diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync index e3439a0a0..c1c4378d5 100755 --- a/roles/bodhi2/backend/files/new-updates-sync +++ b/roles/bodhi2/backend/files/new-updates-sync @@ -205,6 +205,8 @@ def sync_single_repo_arch(release, repo, arch, dest_path):
results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path)))
- results.append(rsync(os.path.join(source_path, maindir, 'drpms'),
if arch != 'source': results.append(rsync(os.path.join(source_path, 'debug',os.path.join(dest_path)))
'tree', 'Packages'), os.path.join(dest_path, 'debug'))) @@ -220,6 +222,9 @@ def sync_single_repo_arch(release, repo, arch, dest_path): results.append(rsync(os.path.join(source_path, maindir, 'Packages'), os.path.join(dest_path), delete=True))
results.append(rsync(os.path.join(source_path, maindir, 'drpms'),
os.path.join(dest_path)),
delete=True)
return collect_stats(results)
infrastructure mailing list -- infrastructure@lists.fedoraproject.org To unsubscribe send an email to infrastructure-leave@lists.fedoraproject.org
infrastructure@lists.fedoraproject.org