Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/801048/?format=api
{ "id": 801048, "url": "http://patchwork.ozlabs.org/api/1.2/patches/801048/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170813220254.168899-1-sjg@chromium.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170813220254.168899-1-sjg@chromium.org>", "list_archive_url": null, "date": "2017-08-13T22:02:54", "name": "[U-Boot] moveconfig: Use fd.write() instead of print >>", "commit_ref": "c79d18c4b40d10c0a95b56e51f4517aca4515364", "pull_url": null, "state": "accepted", "archived": false, "hash": "5a950afa9351b5ab7cc1c0b6320ad0e6ca098bec", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/1.2/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 3184, "url": "http://patchwork.ozlabs.org/api/1.2/users/3184/?format=api", "username": "sjg", "first_name": "Simon", "last_name": "Glass", "email": "sjg@chromium.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170813220254.168899-1-sjg@chromium.org/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/801048/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/801048/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"qgwlQDo2\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xVt652BfFz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 14 Aug 2017 08:03:09 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 074BBC21DAD; Sun, 13 Aug 2017 22:03:04 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 345E8C21C59;\n\tSun, 13 Aug 2017 22:03:02 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid B7D8EC21C59; Sun, 13 Aug 2017 22:03:00 +0000 (UTC)", "from mail-oi0-f51.google.com (mail-oi0-f51.google.com\n\t[209.85.218.51])\n\tby lists.denx.de (Postfix) with ESMTPS id 752F5C21C3F\n\tfor <u-boot@lists.denx.de>; Sun, 13 Aug 2017 22:02:59 +0000 (UTC)", "by mail-oi0-f51.google.com with SMTP id e124so70686691oig.2\n\tfor <u-boot@lists.denx.de>; Sun, 13 Aug 2017 15:02:59 -0700 (PDT)", "from kiwi.bld.corp.google.com ([100.101.164.89])\n\tby smtp.gmail.com with ESMTPSA id\n\th11sm6660121oif.34.2017.08.13.15.02.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 13 Aug 2017 15:02:57 -0700 (PDT)", "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid DC5F01414A6; Sun, 13 Aug 2017 16:02:55 -0600 (MDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; h=sender:from:to:cc:subject:date:message-id;\n\tbh=brENFMAOVH42f2ugINx8erC7c9AybshMK42FL1oki+A=;\n\tb=qgwlQDo2fLbXF6DSaKxzC0BMSSTSlqPGCpZQ+1BV40nVGdVyv4S2MgJIady6FXtu//\n\tSjrxzOVL+kNwXzBRsJj6UkQrk668yiF5r54/02F4zzCITYKh8vV5uKoWlWb8nGKjfvLK\n\tHHqoa3fVK+uh4iVTYBKQAKoD0xJv4F7BCMzGtqeR5j4zONLm2QMX1vE7h25sVO7o7Mgm\n\tc+43ObbJZH9IPQat1BaaWgRQHoOVdXEcI5uxYJDBgKLG0VvwtmL1QNDt1ApoZwpA5ItT\n\tdOpYM4ycyq4TzzxepptfdDs8Bdpax0DUTucvg7+/YzMqZN+hSb0Ubd75ix3bJgznl+St\n\tfRiQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=brENFMAOVH42f2ugINx8erC7c9AybshMK42FL1oki+A=;\n\tb=X8vVqWuNsqVQ0aI/6Jq+G/d1HU0N6Y1gnbhSXG+AsvBPeJTFIcLLufrm8IxLFVodTy\n\tQCyvjPRXh4tGU4fMXC2pndg2UcQ0sIrSRRq0fMaDRwnMrzAsQ/Violbv/szFe4M2FUPc\n\tELoGmk7i35YNLgysN0nEDa8Pc4zQP+g2mq6P+cDPVdDf+qquAM4FFpS2tL6ga/X3zIrO\n\tDbicgz7ujehsxglkzZA7Lc6EYDXxwCidTEVTr63spSXuIpdb6TXQS6ZB3Ul0s1f+iDtC\n\t2/FVaqvSRn9Ruw69aoBs4ALu56FsshEkzsFrDiGImbarvkIulHD9hLIGHWWhM6McwNP0\n\t/6jg==", "X-Gm-Message-State": "AHYfb5g8jIeUbBrZntIdn8aFEbUYWNzdIwf3Ou890cTOOxiwMVutq4KC\n\tbzjFJSgifBI/dcEM", "X-Received": "by 10.202.207.144 with SMTP id\n\tf138mr24159704oig.232.1502661777881; \n\tSun, 13 Aug 2017 15:02:57 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "U-Boot Mailing List <u-boot@lists.denx.de>", "Date": "Sun, 13 Aug 2017 16:02:54 -0600", "Message-Id": "<20170813220254.168899-1-sjg@chromium.org>", "X-Mailer": "git-send-email 2.14.0.434.g98096fd7a8-goog", "Cc": "Chris Packham <judge.packham@gmail.com>,\n\tJoe Hershberger <joe.hershberger@ni.com>", "Subject": "[U-Boot] [PATCH] moveconfig: Use fd.write() instead of print >>", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "Adjust this code so that it can work with Python 2 and 3.\n\nFixes: d73fcb1 (moveconfig: Support building a simple config database)\nReported-by: Chris Packham <judge.packham@gmail.com>\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n lib/libfdt/pylibfdt/libfdt.i | 2 ++\n tools/moveconfig.py | 6 +++---\n 2 files changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/libfdt/pylibfdt/libfdt.i b/lib/libfdt/pylibfdt/libfdt.i\nindex 3b11bb0c95..146f4b942a 100644\n--- a/lib/libfdt/pylibfdt/libfdt.i\n+++ b/lib/libfdt/pylibfdt/libfdt.i\n@@ -8,6 +8,8 @@\n \n %module libfdt\n \n+%include <stdint.i>\n+\n %{\n #define SWIG_FILE_WITH_INIT\n #include \"libfdt.h\"\ndiff --git a/tools/moveconfig.py b/tools/moveconfig.py\nindex 8a03850192..6f549a51c1 100755\n--- a/tools/moveconfig.py\n+++ b/tools/moveconfig.py\n@@ -1877,10 +1877,10 @@ def main():\n if options.build_db:\n with open(CONFIG_DATABASE, 'w') as fd:\n for defconfig, configs in config_db.iteritems():\n- print >>fd, '%s' % defconfig\n+ fd.write('%s\\n' % defconfig)\n for config in sorted(configs.keys()):\n- print >>fd, ' %s=%s' % (config, configs[config])\n- print >>fd\n+ fd.write(' %s=%s\\n' % (config, configs[config]))\n+ fd.write('\\n')\n \n if __name__ == '__main__':\n main()\n", "prefixes": [ "U-Boot" ] }