#1616 docs/schema-upgrade-1.18-1.19.sql/schema.sql: additional CoreOS artifact types.
Merged 2 years ago by tkopecek. Opened 2 years ago by smilner.
smilner/koji more-arch-types  into  master

@@ -4,5 +4,13 @@ 

  

  BEGIN;

  

+ -- add compressed iso-compressed, vhd-compressed, vhdx-compressed, and vmdk-compressed

+ insert into archivetypes (name, description, extensions) values ('iso-compressed', 'Compressed iso image', 'iso.gz iso.xz');

+ insert into archivetypes (name, description, extensions) values ('vhd-compressed', 'Compressed VHD image', 'vhd.gz vhd.xz');

+ insert into archivetypes (name, description, extensions) values ('vhdx-compressed', 'Compressed VHDx image', 'vhd.gz vhd.xz');

+ insert into archivetypes (name, description, extensions) values ('vmdk-compressed', 'Compressed VMDK image', 'vmdk.gz vmdk.xz');

  

+ -- add kernel-image and imitramfs

+ insert into archivetypes (name, description, extensions) values ('kernel-image', 'Kernel BZ2 Image', 'vmlinuz vmlinuz.gz vmlinuz.xz');

+ insert into archivetypes (name, description, extensions) values ('initramfs', 'Compressed Initramfs Image', 'img');

  COMMIT;

file modified
+9
@@ -836,6 +836,15 @@ 

  insert into archivetypes (name, description, extensions) values ('xjb', 'JAXB(Java Architecture for XML Binding) Binding Customization File', 'xjb');

  insert into archivetypes (name, description, extensions) values ('raw-gz', 'GZIP compressed raw disk image', 'raw.gz');

  insert into archivetypes (name, description, extensions) values ('qcow2-compressed', 'Compressed QCOW2 image', 'qcow2.gz qcow2.xz');

+ -- add compressed iso-compressed, vhd-compressed, vhdx-compressed, and vmdk-compressed: From schema-upgrade-1.18-1.19

+ insert into archivetypes (name, description, extensions) values ('iso-compressed', 'Compressed iso image', 'iso.gz iso.xz');

+ insert into archivetypes (name, description, extensions) values ('vhd-compressed', 'Compressed VHD image', 'vhd.gz vhd.xz');

+ insert into archivetypes (name, description, extensions) values ('vhdx-compressed', 'Compressed VHDx image', 'vhd.gz vhd.xz');

+ insert into archivetypes (name, description, extensions) values ('vmdk-compressed', 'Compressed VMDK image', 'vmdk.gz vmdk.xz');

+ -- add kernel-image and imitramfs: From schema-upgrade-1.18-1.19

+ insert into archivetypes (name, description, extensions) values ('kernel-image', 'Kernel BZ2 Image', 'vmlinuz vmlinuz.gz vmlinuz.xz');

+ insert into archivetypes (name, description, extensions) values ('initramfs', 'Compressed Initramfs Image', 'img');

+ 

  

  -- Do we want to enforce a constraint that a build can only generate one

  -- archive with a given name?

Update to https://pagure.io/koji/pull-request/1608 per note on missing update in schema.sql

For the CoreOS Assembler, we need more compressed arch types to improve speed for upload, and hopefully to be a better citizen. These should provide all the foreseeable edge cases for compressed artifacts.

For future reference, you don't normally need to open a new PR for a case like this. Pagure will automatically notice if you update the branch you based a PR on.

I'm closing the older one since this one includes it.

Commit d1b40ae fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago