From patchwork Tue May 14 04:53:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 164100 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2173677ili; Mon, 13 May 2019 21:55:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG2ZtS65y3pB4eFW/hlZOI6ijbq38zvAJ9uYt6rl4/J+AJhzTXbeGLNRkYnVgMLPIkfH// X-Received: by 2002:a17:902:2aeb:: with SMTP id j98mr2394791plb.135.1557809710077; Mon, 13 May 2019 21:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557809710; cv=none; d=google.com; s=arc-20160816; b=vMEH/6xGDSa+qvkN7NiZk6YPcVRNOI9qBHTeochOLWmk41EVOT4DRZqZULkuxcUvT5 /umcoGw+Uymu4qYAdq0LYaNRaEBK31SAx4y3CsMcdhRH8YH3vpUMGUSgreoHdLPXLJ/9 gaKai3MYfVMWaf3tJFe4Lc/Rr2GGEuahb+cEgB3wj192ifgqn8XPXmEKv1Lz6wrJBFCJ ZC6husZ/h4ORFtjrbRfRCtIZJcq6qqha1YurJfUxqI7kn/9tnON2MHK8OKUAmFdi+UbY 9E2Zucll3KSGJA9PNbGEaOfLJ3Q6gioNBZ46fFR5Vd8SKKhL4zb8ot8ZnX8joSHRgb2M zg8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=6EpQTirUIbCFRI11MsT1m/LGMePFmC1npu/BhhwGky0=; b=Isgto57fm2kfv0ykRfbGrqm7XF5ynaTVmKLFKWXnnJAgoXjBXItrcDGwSNGIa6UT1o OKcfUqta8Gl/SWOvAUU9JG58QBogaepH2pV3YuBRwPjC8wrUPCGVgBuxyHYwAnwAfelL B5/gpqlhWCn6WrWQqN+FNS9s+WYS6zPPiF7jSuQK7/wY8uZ7bV3lYMLLXQA2kt6U8dLS AFCJDgfNBIlM0dZ7S7rkvEkwnYUSIUogYP7FoMNXF+Zn6Z352vx+m87kVFeqRDpAoSQl OSgZAGKwAihi5KknfHP5C0oAIxi/L3kEWpnTl5KClbyP0QFeHlMbZw5ww7FXc+wt2lWV 4MKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FYES8Tmx; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y4si17811578pll.138.2019.05.13.21.55.09; Mon, 13 May 2019 21:55:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FYES8Tmx; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C3B257DF60; Tue, 14 May 2019 04:54:39 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id A6A627DF03 for ; Tue, 14 May 2019 04:54:13 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id t187so7926587pgb.13 for ; Mon, 13 May 2019 21:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=oWbnlQ+MD8VzDhdVUS0jbKWbOG3hDeMshik4kk0kajM=; b=FYES8TmxkHFTJLRL0i5LRR/daGzWopG9AAqUP5Ns1loCalLYUXlrfx+kbJJL70rP9M SAO1StcGTBzHtAnJGgv0t1mwSDPw1Iircx+efhCI6fk+/WGFFbRfkqO44OdHueUZvSUq Xpx/DL0Ktx4TvyfIezUn6JA2ADzPmEMt2VtiBbXsKRVspK9+PTZOEhDlDw9GqCv4d3BO t5l79czKtvBQZLcI+9taZ+y5aU/SUmcBZOV1rfOQwtrsbTJT7tmRPjr2julHc6MG3VfZ dX/33/rvtbcFC9DYAPqI7LUY0xHpj5aq7scvjAoUQfKUjKOBpt+SYzDallhAiaKP8Wtq vgCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=oWbnlQ+MD8VzDhdVUS0jbKWbOG3hDeMshik4kk0kajM=; b=FleK4HWxxa/Nwqq598QixEqYO+M3AYjgMzHaIUG2f4rovEl6YYIJv8A8r/qoNWJO6C suGHAXfpck7IxoeptM7sopszR/M/nON2Q4MNvRkpNF72hC2dcKSActsgsnT29RHo3N0H 61YBdAYzVofdoro53Omt6+5aWgIO6tQ6AGklvQD7kPU3Q3dMcdpo0Nt0y0vYsbff/uKf 4wJVinTpSHyQCVKUIC0IlEIek2LSybDR2S+wMOhCZyYvJgSzioMrKgLGZhILRvIMGjpS 3tNbiGnEAZqdihMtEcmDzreI/kOm5XwhpPhcwNSwXl35GX2PD+AaI2JVQeyJe2Dvl8ZU /2Yw== X-Gm-Message-State: APjAAAU7JwZ6isQNPgO7NWTK+qPePwbYOhFYSXAK9BvWyBASZmKmyQ23 5hZdmP6YiGcHaWjohTHsww7NxUHh X-Received: by 2002:a63:a08:: with SMTP id 8mr35492830pgk.46.1557809654741; Mon, 13 May 2019 21:54:14 -0700 (PDT) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:c33:d909:eb3d:d2ab:fd1d]) by smtp.gmail.com with ESMTPSA id q75sm5698451pfa.175.2019.05.13.21.54.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 May 2019 21:54:14 -0700 (PDT) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Mon, 13 May 2019 21:53:48 -0700 Message-Id: <6d86d126121cd15c7e9832b24106332ab439beeb.1557809500.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [PATCH 06/23] wic: change expand behaviour to match docs 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton The documentation says that --expand takes a comma-separated list of partition:size pairs, but the code was splitting on hyphens. Hyphens are not a transitional separator for a list of items, so change the code to reflect the documentation. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- scripts/wic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/scripts/wic b/scripts/wic index b4b7212..a3c0f73 100755 --- a/scripts/wic +++ b/scripts/wic @@ -426,7 +426,7 @@ def expandtype(rules): if rules == 'auto': return {} result = {} - for rule in rules.split('-'): + for rule in rules.split(','): try: part, size = rule.split(':') except ValueError: