diff --git a/osclib/stagingapi.py b/osclib/stagingapi.py
index 92f2d9cd..e8392e6e 100644
--- a/osclib/stagingapi.py
+++ b/osclib/stagingapi.py
@@ -1431,12 +1431,16 @@ class StagingAPI(object):
{repository}
- x86_64
{images_repo}
{containerfile_repo}
"""
+ root = ET.fromstring(meta)
+ repository = root.find('.//repository[@name="standard"]')
+ for arch in self.cstaging_archs:
+ a = ET.SubElement(repository, 'arch')
+ a.text = arch
url = make_meta_url('prj', name, self.apiurl)
http_PUT(url, data=meta)
# put twice because on first put, the API adds useless maintainer