ostree-installer: Use dvd-ostree as type in metadata

This depends on python-productmd >= 1.3 that understands this format.

Fixes: #417
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-10-06 13:12:34 +02:00
parent 2bd18b1b03
commit dd814a5f4d
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class OstreeInstallerThread(WorkerThread):
img.mtime = util.get_mtime(full_iso_path)
img.size = util.get_file_size(full_iso_path)
img.arch = arch
img.type = "boot"
img.type = "dvd-ostree"
img.format = "iso"
img.disc_number = 1
img.disc_count = 1

View File

@ -61,7 +61,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
self.assertEqual(image.mtime, 13579)
self.assertEqual(image.size, 1024)
self.assertEqual(image.arch, 'x86_64')
self.assertEqual(image.type, "boot")
self.assertEqual(image.type, "dvd-ostree")
self.assertEqual(image.format, "iso")
self.assertEqual(image.disc_number, 1)
self.assertEqual(image.disc_count, 1)