From 778fde77457047dbcd9ad21cace8a9805ddb8019 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 9 May 2010 22:33:59 +0200 Subject: [PATCH] [molecule.specs.remaster] fix support for destination_iso_image_name, thanks to Joost Ruis for reporting --- molecule/specs/plugins/remaster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/molecule/specs/plugins/remaster.py b/molecule/specs/plugins/remaster.py index 3f59049..ac5a280 100644 --- a/molecule/specs/plugins/remaster.py +++ b/molecule/specs/plugins/remaster.py @@ -288,8 +288,10 @@ class IsoHandler(BuiltinIsoHandler): def setup(self): # cdroot dir self.source_path = self.metadata['cdroot_path'] - self.dest_iso = os.path.join(self.metadata['destination_iso_directory'], + dest_iso_filename = self.metadata.get('destination_iso_image_name', "remaster_" + os.path.basename(self.metadata['source_iso'])) + self.dest_iso = os.path.join(self.metadata['destination_iso_directory'], + dest_iso_filename) self.iso_title = self.metadata.get('iso_title', 'Molecule remaster') self.source_chroot = self.metadata['chroot_unpack_path'] self.chroot_dir = self.source_chroot