[PATCH] sync: add syncing for multi-arch ostrees

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This allows for syncing out aarch64 and ppc64le ostrees
in addition to x86_64 trees.
---
 roles/bodhi2/backend/files/new-updates-sync | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/roles/bodhi2/backend/files/new-updates-sync b/roles/bodhi2/backend/files/new-updates-sync
index ae977b1..4d2be72 100755
--- a/roles/bodhi2/backend/files/new-updates-sync
+++ b/roles/bodhi2/backend/files/new-updates-sync
@@ -24,8 +24,9 @@ RELEASES = {'f27': {'topic': 'fedora',
                     'modules': ['fedora', 'fedora-secondary'],
                     'repos': {'updates': {
                         'from': 'f27-updates',
-                        'ostree': {'ref': 'fedora/27/x86_64/updates/atomic-host',
-                                   'dest': os.path.join(ATOMICDEST, '27')},
+                        'ostree': {'ref': 'fedora/27/%s/updates/atomic-host',
+                                   'dest': os.path.join(ATOMICDEST, '27'),
+                                   'arches': ['x86_64', 'aarch64', 'ppc64le']},
                         'to': [{'arches': ['x86_64', 'armhfp', 'source'],
                                 'dest': os.path.join(FEDORADEST, '27')},
                                {'arches': ['aarch64', 'i386', 'ppc64', 'ppc64le', 's390x'],
@@ -33,8 +34,9 @@ RELEASES = {'f27': {'topic': 'fedora',
                               ]},
                               'updates-testing': {
                         'from': 'f27-updates-testing',
-                        'ostree': {'ref': 'fedora/27/x86_64/testing/atomic-host',
-                                   'dest': os.path.join(ATOMICDEST, '27')},
+                        'ostree': {'ref': 'fedora/27/%s/testing/atomic-host',
+                                   'dest': os.path.join(ATOMICDEST, '27'),
+                                   'arches': ['x86_64', 'aarch64', 'ppc64le']},
                         'to': [{'arches': ['x86_64', 'armhfp', 'source'],
                                 'dest': os.path.join(FEDORADEST, 'testing', '27')},
                                {'arches': ['aarch64', 'i386', 'ppc64', 'ppc64le', 's390x'],
@@ -60,8 +62,9 @@ RELEASES = {'f27': {'topic': 'fedora',
                     'modules': ['fedora', 'fedora-secondary'],
                     'repos': {'updates': {
                         'from': 'f26-updates',
-                        'ostree': {'ref': 'fedora/26/x86_64/updates/atomic-host',
-                                   'dest': os.path.join(ATOMICDEST, '26')},
+                        'ostree': {'ref': 'fedora/26/%s/updates/atomic-host',
+                                   'dest': os.path.join(ATOMICDEST, '26'),
+                                   'arches': ['x86_64']},
                         'to': [{'arches': ['x86_64', 'armhfp', 'source'],
                                 'dest': os.path.join(FEDORADEST, '26')},
                                {'arches': ['aarch64', 'i386', 'ppc64', 'ppc64le'],
@@ -69,8 +72,9 @@ RELEASES = {'f27': {'topic': 'fedora',
                               ]},
                               'updates-testing': {
                         'from': 'f26-updates-testing',
-                        'ostree': {'ref': 'fedora/26/x86_64/testing/atomic-host',
-                                   'dest': os.path.join(ATOMICDEST, '26')},
+                        'ostree': {'ref': 'fedora/26/%s/testing/atomic-host',
+                                   'dest': os.path.join(ATOMICDEST, '26'),
+                                   'arches': ['x86_64']},
                         'to': [{'arches': ['x86_64', 'armhfp', 'source'],
                                 'dest': os.path.join(FEDORADEST, 'testing', '26')},
                                {'arches': ['aarch64', 'i386', 'ppc64', 'ppc64le'],
@@ -301,7 +305,8 @@ def sync_single_release(release):
 
         if 'ostree' in RELEASES[release]['repos'][repo]:
             ostree = RELEASES[release]['repos'][repo]['ostree']
-            sync_ostree(ostree['dest'], ostree['ref'])
+            for arch in ostree['arches']:
+                sync_ostree(ostree['dest'], ostree['ref'] % arch)
 
     return needssync
 
-- 
2.9.5
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux