From 959f66efb2d81b5eb8d54896d2226466520d1466 Mon Sep 17 00:00:00 2001 From: Marko Saukko Date: Thu, 15 Dec 2011 13:11:47 +0200 Subject: [PATCH] Added support for name_prefix. Signed-off-by: Marko Saukko --- distfiles/mic.conf | 4 +++- mic/conf.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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:") -- 2.7.4