| |
@@ -423,7 +423,10 @@
|
| |
|
| |
bundle_path = os.path.join(broot.rootdir(), bundle_dir[1:])
|
| |
for fname in os.listdir(bundle_path):
|
| |
- self.uploadFile(os.path.join(bundle_path, fname), remoteName=fname)
|
| |
+ # rename '.vhdfixed.xz' Azure images to 'vhd.xz' to match
|
| |
+ # what Koji expects
|
| |
+ upname = fname.replace("vhdfixed", "vhd")
|
| |
+ self.uploadFile(os.path.join(bundle_path, fname), remoteName=upname)
|
| |
imgdata['files'].append(fname)
|
| |
|
| |
if not self.opts.get('scratch'):
|
| |
Kiwi's "vhd-fixed" format, which we use to generate Azure images,
outputs images with the extension "vhdfixed.xz". This isn't in
Koji's list of accepted image extensions, and updating that
involves a database schema update, which is a drag. It seems
easier to just rename these images to "vhd.xz" when uploading
them.
Signed-off-by: Adam Williamson awilliam@redhat.com