Show a patch.

GET /api/1.1/patches/3463/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 3463,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/3463/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3463/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20200414214819.14112-1-laurent.pinchart@ideasonboard.com>",
    "date": "2020-04-14T21:48:19",
    "name": "[libcamera-devel] libcamera: gen-ipa-pub-key.py: Wrap lines in generated file",
    "commit_ref": "8defb069eb4a68d62ebf312ec5a76eee162ad970",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f35376fa52f07db6a126e719c73b94efffdacc6b",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/3463/mbox/",
    "series": [
        {
            "id": 809,
            "url": "https://patchwork.libcamera.org/api/1.1/series/809/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=809",
            "date": "2020-04-14T21:48:19",
            "name": "[libcamera-devel] libcamera: gen-ipa-pub-key.py: Wrap lines in generated file",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/809/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3463/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3463/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9300E60405\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Apr 2020 23:48:34 +0200 (CEST)",
            "from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1974D521\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Apr 2020 23:48:34 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"mI9v87jx\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1586900914;\n\tbh=loi0mJYDMrA/4bFjAhAQe2VVFVFhzgQp107tgeP5KeM=;\n\th=From:To:Subject:Date:From;\n\tb=mI9v87jxUl+LGXVk1zFWZK0zVwRuwq7TUAb4tn3a7+rIyKIn9/e03U0A+Hb57zJeW\n\tmcMRfI5TaUezPzPxjmkhBZjX6/At3LOXj8Se25dQKnC41DKsfcPc+gF/gCOKWXZ3zy\n\tK2vKh+RAHPogY8YNQf3yxD8CZofD9nnaIXNUxUpU=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 15 Apr 2020 00:48:19 +0300",
        "Message-Id": "<20200414214819.14112-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.24.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] libcamera: gen-ipa-pub-key.py: Wrap lines\n\tin generated file",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Tue, 14 Apr 2020 21:48:34 -0000"
    },
    "content": "To make the output more readable, break the publicKeyData_ array at 8\nbytes boundaries.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/gen-ipa-pub-key.py | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/src/libcamera/gen-ipa-pub-key.py b/src/libcamera/gen-ipa-pub-key.py\nindex ad575b18c922..a4a1f7b79337 100755\n--- a/src/libcamera/gen-ipa-pub-key.py\n+++ b/src/libcamera/gen-ipa-pub-key.py\n@@ -28,7 +28,9 @@ def main(argv):\n         print('Please install openssl to sign IPA modules')\n         return 1\n \n-    ipa_key = ', '.join(['0x%02x' % c for c in ret.stdout])\n+    ipa_key = ['0x%02x' % c for c in ret.stdout]\n+    ipa_key = [', '.join(ipa_key[bound:bound + 8]) for bound in range(0, len(ipa_key), 8)]\n+    ipa_key = ',\\n\\t'.join(ipa_key)\n     data = {'ipa_key': ipa_key}\n \n     template = open(template, 'rb').read()\n",
    "prefixes": [
        "libcamera-devel"
    ]
}