{"id":806506,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806506/?format=json","project":{"id":58,"url":"http://patchwork.ozlabs.org/api/1.0/projects/58/?format=json","name":"swupdate development","link_name":"swupdate","list_id":"swupdate.googlegroups.com","list_email":"swupdate@googlegroups.com","web_url":"https://github.com/sbabic/swupdate","scm_url":"git://github.com/sbabic/swupdate","webscm_url":""},"msgid":"<1503918326-7716-1-git-send-email-afaustas@gmail.com>","date":"2017-08-28T11:05:26","name":"Description field has been added to the default parser and fixed incorrect update sequence.","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"a96c13ee868e89755873a968ccdae42521cae16c","submitter":{"id":72239,"url":"http://patchwork.ozlabs.org/api/1.0/people/72239/?format=json","name":"Faustas Azuolas Bagdonas","email":"afaustas@gmail.com"},"delegate":{"id":1693,"url":"http://patchwork.ozlabs.org/api/1.0/users/1693/?format=json","username":"sbabic","first_name":"Stefano","last_name":"Babic","email":"sbabic@denx.de"},"mbox":"http://patchwork.ozlabs.org/project/swupdate/patch/1503918326-7716-1-git-send-email-afaustas@gmail.com/mbox/","series":[{"id":132,"url":"http://patchwork.ozlabs.org/api/1.0/series/132/?format=json","date":"2017-08-28T11:05:26","name":"Description field has been added to the default parser and fixed incorrect update sequence.","version":1,"mbox":"http://patchwork.ozlabs.org/series/132/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806506/checks/","tags":{},"headers":{"Return-Path":"<swupdate+bncBCF5BCWLQMPRB67RR7GQKGQEPMQ4EGQ@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:400c:c09::239;\n\thelo=mail-wm0-x239.google.com;\n\tenvelope-from=swupdate+bncbcf5bcwlqmprb67rr7gqkgqepmq4egq@googlegroups.com;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"OZx5COvx\"; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"luvMUZHp\"; dkim-atps=neutral"],"Received":["from mail-wm0-x239.google.com (mail-wm0-x239.google.com\n\t[IPv6:2a00:1450:400c:c09::239])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgppR54tXz9s8P\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 21:05:34 +1000 (AEST)","by mail-wm0-x239.google.com with SMTP id i76sf43553wme.1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 04:05:34 -0700 (PDT)","by 10.28.30.7 with SMTP id e7ls31764wme.17.gmail; Mon, 28 Aug 2017\n\t04:05:31 -0700 (PDT)","from mail-lf0-x232.google.com (mail-lf0-x232.google.com.\n\t[2a00:1450:4010:c07::232]) by gmr-mx.google.com with ESMTPS id\n\tf142si210373wmf.1.2017.08.28.04.05.31\n\tfor <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 28 Aug 2017 04:05:31 -0700 (PDT)","by mail-lf0-x232.google.com with SMTP id d17so723358lfe.1\n\tfor <swupdate@googlegroups.com>; Mon, 28 Aug 2017 04:05:31 -0700 (PDT)","from faustaspc.lifodas.local ([213.197.143.19])\n\tby smtp.gmail.com with ESMTPSA id 7sm40986lje.5.2017.08.28.04.05.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 28 Aug 2017 04:05:30 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1503918332; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=oaHRhlN0ZHE1TQ9cmLyPyibUssfBY+moohCV66VJI1ydRJoln6TGpvf6nyA11Jw//I\n\to+88VtBiJVulh+5ZtPGNnd74Ned7xM/jMZDY1ZTg6HwHjSuhun3cpqzLp3+Dgq/OcJK0\n\tGiqAUl8PChRuyeT+NL0uJNcpV6z3YHHyBxzWXZuIhuP7k4MD7AHWw8x52hf9CEIWrngB\n\tPYObpPW13GZfC7L5geXhjMf9hoZDfkZOYpQfXZri9B7sWDOSSMxuPoLTtuQgF/00nPTH\n\tb6HvReZFKSYLjKOH36agUPqWjf7oVq5cjWWjpDSy04myvupn4WYo19051saNAsTb+s8E\n\tOmgg==","i=1; a=rsa-sha256; t=1503918331; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=tPPwuPjqBCyMaHgY2I3s/LEPsmWNBhba5Vo3OKXYYVN5Ov51NQPJSHBQzHfuuPNDtL\n\tRD3dlK5eoz1zENwP7njgeRjdARh8Zavuh6v8bJOAtK9/Tn+Tzvqr2LiEtP9TV2D7wOHc\n\txDVy0dhr0gYsvf3VBmfYx25A1QzSWjKR0x4rzs2mt8cyhFaw1KXx0SKyzOGJH75nA0P7\n\tFGZ5gJZLNz0DC9aUsNv2Sa6PuUJblnWeqqZHv3O1j1yiSHF5e+bJTzUF+YYqe6kn3LQ5\n\tmntZaLDxBXqsGz9oNmfhVpZuLGB+BmKihSZa4AgE1bUGZLsZEXP1pjGqSxue8FSkQBJ4\n\t9hAg=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:signed-off-by:message-id:date\n\t:subject:cc:to:from:arc-authentication-results:arc-message-signature\n\t:mime-version:sender:dkim-signature:dkim-signature\n\t:arc-authentication-results;\n\tbh=cM08oes8dB6KRy5HQ64Xwf+GAWO122gACk/NSNHZyXc=;\n\tb=T0/3sturbo+1Qy71SwcbCpZfNgBdXQMnZ91O7HGAt/PK/nmg3YZijb+7slmkopIUPu\n\tXWI4y4dQFOuFAuaQvBN8MK0f5mSrDF55RaYGHy6BsNtgz5unmIvcQBMJv7dA4KiW6ZAR\n\tWsRmfpx0J05kCRLeWdtuVCtTBQ3hWQazTZIObDc3gL0bZ//diMBhJy0zI1UrbtRFv91c\n\thmLsrEbHcRyuNWeHl8B23bQV562Brobe95cUuJ6lkysOv3uJAFKoLEjQAox6IqiOK4xF\n\t6i4XmPg43jpesb9AWwJaVLafrs0/468UxkyK3WZ+4ZuF2m9n5jm0ZdEpoJTJxXBPvIFr\n\tC1Jw==","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=signed-off-by:message-id:date:subject:cc:to:from:dkim-signature\n\t:arc-authentication-results;\n\tbh=ii92zXTL8itdrwVm99/iXML9zgF8Mg1Kp/GzPK5FD20=;\n\tb=oaFrqPQIIwL7GXo9+/B905j5ZdusLq0m6whapopv8JT1hKLswkPBruomqcRIgtzwc7\n\tSDloF0Pr8CryenBHx7ERafZKipUqAEajadnpC8EyPSKmwizuKqdOZo1ir+zSxv3sXv9X\n\tNiYY+h3aMVMragCPnuKtzBRv1xbdt4QHDRu3TgwM78HWhTsiicF1d1BvHOc0HMoSlgiu\n\tNAAawXU5M50/b5LzX7h5pABIvt9WQZeTVonhm2qyc6vwFj5lML/fHKB2IStNgsWoki/6\n\tB8Ji6Rg53T/bxNSxvtCac+p2hkKGxwAWfcoVflKFH8CZz506qHhPA7maqQ8xFrUSoB9z\n\t1hHw=="],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n\tdkim=pass header.i=@gmail.com header.s=20161025 header.b=niB3YsSr;\n\tspf=pass (google.com: domain of afaustas@gmail.com designates\n\t2a00:1450:4010:c07::232 as permitted sender)\n\tsmtp.mailfrom=afaustas@gmail.com; \n\tdmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com","i=1; gmr-mx.google.com;\n\tdkim=pass header.i=@gmail.com header.s=20161025 header.b=niB3YsSr;\n\tspf=pass (google.com: domain of afaustas@gmail.com designates\n\t2a00:1450:4010:c07::232 as permitted sender)\n\tsmtp.mailfrom=afaustas@gmail.com; \n\tdmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id\n\t:signed-off-by:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=cM08oes8dB6KRy5HQ64Xwf+GAWO122gACk/NSNHZyXc=;\n\tb=OZx5COvxEr9YkSl+hWwLZiQ0vsKwHIuS4Moynq6oeizeyNrjyh4WFVCfGrANzBfwWT\n\tWFYm9p0JP74Y1Lt7x8LHgcBKxKlOFjND64O1H5K+NyIPmW3DhujAP1Xw8OfWuqfC9/LG\n\tMDfSW8TJBrKXEtUV8Yd+f2XvFS8Q2B6JHiSeBe9cSvyPPpD/wQ68WKjniMXBWHCh0mO5\n\tll5mTZcxrpGvxGfFpVrFaN8IAvk1gYLrYxVKXOYQ9SxqROcC9NKR0nPYhYUlhTVo1v6x\n\tIXWJBA5YBEULa3NJ32esYZsljxZ1rjDWY70cBMX9zf3cfx7ORjov0VM5RNHma1Z6iTCs\n\tk8dw==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=mime-version:from:to:cc:subject:date:message-id:signed-off-by\n\t:x-original-sender:x-original-authentication-results:precedence\n\t:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=cM08oes8dB6KRy5HQ64Xwf+GAWO122gACk/NSNHZyXc=;\n\tb=luvMUZHp89wB+FWtZbfkAEKtdoc9ySQ0N2JnpjhgyisgtnWQ0hUl1Mr5wGwfv3z8B6\n\tUU1usrn1lxWQFX7xUPxxUwuREy75VSSGmbuQ3OgFWHWFuqzSdbhY0QUuR9fQ8VX2E75f\n\teAIjSj+jHLiT32mAhtPlB0KMse1BoWgBa2fArku8VrFxrnDaAYXZwjcWuJ8r1LCysFHi\n\tCx1Dma/l7PKa0VVd+OwnW5477e+kkJ7/IQDdzcV9G5HjUApdaEdf+xwO5Bh0WxSAdhoi\n\tv1AmlEMcSHtWGSErSczhJLeGEKWyvUoGtJngd2OwNZLeFe9D2UICJFyq+4fIaCqedxtS\n\tQfHw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:signed-off-by:x-original-sender\n\t:x-original-authentication-results:precedence:mailing-list:list-id\n\t:x-spam-checked-in-group:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=cM08oes8dB6KRy5HQ64Xwf+GAWO122gACk/NSNHZyXc=;\n\tb=T2TuJHIbmyNE5pxaCWLvxtGI11U2pU+I5iP/kLaacCqL6TlhNfaAMAPHdd/1fk6Q6b\n\tZypO5VJ1M9nV/xgwhOqO7OgdGugWl+WoA/Nj1QOPz1ZM6q0rVsc+LJl9NK8QfjcYK0b8\n\tuyaiZ/2kpkTJHT9iHe//4Dd0ATNcF9HxzQG5fm+CpPc4MIBUjOfTBrRHK5IXB4czLZtt\n\tH4GQUwt9SmMdgkegTFLwTFgB7353fRdWXgwR4zlIGgy1+s5HfR3UqEwnGWxWn+xe7tCX\n\tSOZoV8ZAisdgX63J0s5KZH71nxZzQKwQA4hDLe2IsSF2llaAeiMOWyNqGQi+0fm0ipVL\n\t8HRw==","Sender":"swupdate@googlegroups.com","X-Gm-Message-State":"AHYfb5gMkcLSwUgEDE1aK4V0/FnaITYdwaUMt1E7atsBy4yneNwJ1Pj9\n\t8YBEe5NF8nP5gA==","X-Received":["by 10.28.109.197 with SMTP id b66mr142wmi.9.1503918332057;\n\tMon, 28 Aug 2017 04:05:32 -0700 (PDT)","by 10.28.142.74 with SMTP id q71mr5419wmd.17.1503918331712;\n\tMon, 28 Aug 2017 04:05:31 -0700 (PDT)","by 10.46.4.129 with SMTP id a1mr77897ljf.117.1503918331249;\n\tMon, 28 Aug 2017 04:05:31 -0700 (PDT)"],"MIME-Version":"1.0","X-BeenThere":"swupdate@googlegroups.com","Received-SPF":"pass (google.com: domain of afaustas@gmail.com designates\n\t2a00:1450:4010:c07::232 as permitted sender)\n\tclient-ip=2a00:1450:4010:c07::232; ","From":"Faustas <afaustas@gmail.com>","To":"swupdate@googlegroups.com","Cc":"Faustas <afaustas@gmail.com>","Subject":"[swupdate] [PATCH] Description field has been added to the default\n\tparser and fixed incorrect update sequence.","Date":"Mon, 28 Aug 2017 14:05:26 +0300","Message-Id":"<1503918326-7716-1-git-send-email-afaustas@gmail.com>","X-Mailer":"git-send-email 2.7.4","Signed-off-by":"Faustas <afaustas@gmail.com>","X-Original-Sender":"afaustas@gmail.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n\theader.i=@gmail.com header.s=20161025 header.b=niB3YsSr; spf=pass\n\t(google.com: domain of afaustas@gmail.com designates\n\t2a00:1450:4010:c07::232\n\tas permitted sender) smtp.mailfrom=afaustas@gmail.com; dmarc=pass\n\t(p=NONE sp=NONE dis=NONE) header.from=gmail.com","Content-Type":"text/plain; charset=\"UTF-8\"","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com","List-ID":"<swupdate.googlegroups.com>","X-Spam-Checked-In-Group":"swupdate@googlegroups.com","X-Google-Group-Id":"605343134186","List-Post":"<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"},"content":"","diff":"diff --git a/include/globals.h b/include/globals.h\nindex ddb42de..8ac0222 100644\n--- a/include/globals.h\n+++ b/include/globals.h\n@@ -23,6 +23,7 @@\n #define BANNER \"Swupdate v\" SWU_VER \"\\n\"\n \n #define SWUPDATE_GENERAL_STRING_SIZE\t256\n+#define SWUPDATE_UPDATE_DESCRIPTION_STRING_SIZE\t1024\n #define MAX_IMAGE_FNAME\tSWUPDATE_GENERAL_STRING_SIZE\n #define MAX_URL\t\tSWUPDATE_GENERAL_STRING_SIZE\n #define MAX_VOLNAME\tSWUPDATE_GENERAL_STRING_SIZE\ndiff --git a/include/swupdate.h b/include/swupdate.h\nindex bff757e..f65a109 100644\n--- a/include/swupdate.h\n+++ b/include/swupdate.h\n@@ -114,6 +114,7 @@ struct swupdate_global_cfg {\n struct swupdate_cfg {\n \tchar name[SWUPDATE_GENERAL_STRING_SIZE];\n \tchar version[SWUPDATE_GENERAL_STRING_SIZE];\n+\tchar description[SWUPDATE_GENERAL_STRING_SIZE];\n \tchar software_set[SWUPDATE_GENERAL_STRING_SIZE];\n \tchar running_mode[SWUPDATE_GENERAL_STRING_SIZE];\n \tstruct hw_type hw;\ndiff --git a/parser/parser.c b/parser/parser.c\nindex 178966e..c5526c8 100644\n--- a/parser/parser.c\n+++ b/parser/parser.c\n@@ -491,10 +491,11 @@ static int parser(parsertype p, void *cfg, struct swupdate_cfg *swcfg)\n \n \t/* Now parse the single elements */\n \tparse_hw_compatibility(p, cfg, swcfg);\n-\tparse_images(p, cfg, swcfg);\n+\tparse_files(p, cfg, swcfg);\n \tparse_scripts(p, cfg, swcfg);\n \tparse_uboot(p, cfg, swcfg);\n-\tparse_files(p, cfg, swcfg);\n+\tparse_images(p, cfg, swcfg);\n+\n \n \t/*\n \t * Move the partitions at the beginning to be processed\n@@ -549,6 +550,14 @@ int parse_cfg (struct swupdate_cfg *swcfg, const char *filename)\n \t\tfprintf(stdout, \"Version %s\\n\", swcfg->version);\n \t}\n \n+\tsnprintf(node, sizeof(node), \"%s.description\",\n+\t\t\tNODEROOT);\n+\n+\tif (config_lookup_string(&cfg, node, &str)) {\n+\t\tstrncpy(swcfg->description, str, sizeof(swcfg->description));\n+                fprintf(stdout, \"Description %s\\n\", swcfg->description);\n+\t}\n+\n \tret = parser(p, &cfg, swcfg);\n \n \tconfig_destroy(&cfg);\n","prefixes":[]}