Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id 3115E731F6 for ; Fri, 12 Feb 2016 12:09:32 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 12 Feb 2016 04:09:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,435,1449561600"; d="scan'208";a="882805237" Received: from drozhkov-desk.fi.intel.com ([10.237.72.185]) by orsmga001.jf.intel.com with ESMTP; 12 Feb 2016 04:09:33 -0800 From: Dmitry Rozhkov To: openembedded-core@lists.openembedded.org Date: Fri, 12 Feb 2016 14:15:42 +0200 Message-Id: <1455279342-5458-1-git-send-email-dmitry.rozhkov@intel.com> X-Mailer: git-send-email 2.5.0 Subject: [PATCH] os-release: remove double-quotes around VERSION_ID value X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2016 12:09:34 -0000 man 5 os-release states that VERSION_ID is " a lower-case string (mostly numeric, no spaces or other characters outside of 0-9, a-z, ".", "_" and "-") identifying the operating system version " This becomes crucial when ClearLinux's software update mechanism is integrated into builds, because its client side ignores VERSION_ID's value if it doesn't conform the definition. Signed-off-by: Dmitry Rozhkov --- meta/recipes-core/os-release/os-release.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index df19ca2..1f0df9e 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb @@ -29,7 +29,11 @@ python do_compile () { for field in d.getVar('OS_RELEASE_FIELDS', True).split(): value = d.getVar(field, True) if value: - f.write('{0}="{1}"\n'.format(field, value)) + if field == "VERSION_ID": + format_str = '{0}={1}\n' + else: + format_str = '{0}="{1}"\n' + f.write(format_str.format(field, value)) if d.getVar('RPM_SIGN_PACKAGES', True) == '1': rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True) bb.utils.mkdirhier('${B}/rpm-gpg') -- 2.5.0 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.