From: Marko Saukko Date: Thu, 15 Dec 2011 11:11:47 +0000 (+0200) Subject: Added support for name_prefix. X-Git-Tag: 0.3~10^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=959f66efb2d81b5eb8d54896d2226466520d1466;p=platform%2Fupstream%2Fmic.git Added support for name_prefix. Signed-off-by: Marko Saukko --- diff --git a/distfiles/mic.conf b/distfiles/mic.conf index c623c7f..ec36a8a 100644 --- a/distfiles/mic.conf +++ b/distfiles/mic.conf @@ -11,7 +11,9 @@ distro_name = Tizen ; proxy = http://proxy.yourcompany.com:8080/ ; no_proxy = localhost,127.0.0.0/8,.yourcompany.com - +# Prefix that is added in front of files that are produced. +; name_prefix = output + [convert] ; settings for convert subcommand diff --git a/mic/conf.py b/mic/conf.py index 7a29834..1af3320 100644 --- a/mic/conf.py +++ b/mic/conf.py @@ -42,6 +42,7 @@ class ConfigMgr(object): "record_pkgs": [], "compress_disk_image": None, "distro_name": "Default Distribution", + "name_prefix": None, }, 'chroot': {}, 'convert': {}, @@ -141,6 +142,9 @@ class ConfigMgr(object): self.create['ks'] = ks self.create['name'] = os.path.splitext(os.path.basename(ksconf))[0] + if self.create['name_prefix']: + self.create['name'] = "%s-%s" % (self.create['name_prefix'], self.create['name']) + self._selinux_check (self.create['arch'], ks) msger.info("Retrieving repo metadata:")