get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624194,
    "url": "http://patchwork.ozlabs.org/api/patches/624194/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-23-git-send-email-sven.eckelmann@open-mesh.com/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1463682077-19339-23-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-19T18:21:06",
    "name": "[OpenWrt-Devel,CC,23/34] ar71xx: enable sysupgrade for the OpenMesh OM5P-AC",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ee48985fd4cdfdd7db1461c0c8be846183368977",
    "submitter": {
        "id": 68437,
        "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api",
        "name": "Sven Eckelmann",
        "email": "sven.eckelmann@open-mesh.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-23-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624194/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624194/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r9fjP6YG2z9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:29:13 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 87C65B920BB;\n\tThu, 19 May 2016 20:23:08 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 19 May 2016 20:23:08 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 4D9B7B91FF3\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:09 +0200 (CEST)",
            "from mail-wm0-f50.google.com (mail-wm0-f50.google.com\n\t[74.125.82.50]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:09 +0200 (CEST)",
            "by mail-wm0-f50.google.com with SMTP id n129so48261246wmn.1\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:22:09 -0700 (PDT)",
            "from sven-desktop.home.narfation.org\n\t(p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201])\n\tby smtp.gmail.com with ESMTPSA id\n\tm20sm471875wma.23.2016.05.19.11.22.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:22:08 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=F/Gxrl29; dkim-atps=neutral",
        "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.1",
        "X-policyd-weight": "using cached result; rate: -7",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=srKEHbLTOkD54J83xzy3R4+XZ2I4avg7AvLU0T1rcn4=;\n\tb=F/Gxrl29lY+ygh6acoXGv2UyRxodN2ECryoeCNmBKQ0K9t7uxJNbZ3EYB5+MUDSkcM\n\tOzkZD7fmNMcHa1DeSDgreoMuZSMRGVgsylaDb8H//T07eYDeDQE6neSexi+LBEZ0A8fW\n\trPHahPcfCr1iCFKfuTfLV2JuqGuciLbEa7A7ZFgA7X5Wch+b3rfO3nrxKRO1lH4c50pl\n\tlRH5RvwO911ZU74+B/A3367TYbpzqkHkF/aE+INNGseXvKTXRDCmyB17u2J4GOW4MER8\n\texjbvTk43ijbLxCsHdnPoee/s06NBd9LhjPxClaWbOdH6tNbB5EHUJi8OzCsWIClnq2U\n\tNBOg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=srKEHbLTOkD54J83xzy3R4+XZ2I4avg7AvLU0T1rcn4=;\n\tb=ibwIqZmNhgTYoQHtlFszkJUmE6ZFu5b6zKR6B+4VesVzW4rgZ0yfY102eYD3oF4tW1\n\ta+loAyXREZYlB9OV1f5ZTvW+jDqoQ97lwK4pe0b3IuS4RtjRby3sJxBE+uFc2GSnL8/6\n\tWa9qk/HIFkkxiQ3v3F+pzEg56GIQgPeKTEAnuqb/dtk9Vi80/KN/Op2PJHJFKn0dwnbV\n\tErSN7+UaWKNM58R0Jf1EgAWuNu4cUQr2vEpy0UJu1iPhQDdkPjAVAcPntAEWmjbpWXEf\n\t9VokBmWFkdRkJfQVzlPrn6bxDxiC7vKhPEurh+An+tMP6fP2Mq6LCirUmb+29EX+x+hk\n\tpl3g==",
        "X-Gm-Message-State": "AOPr4FWMJBCv1gwJLnZmyowELgBrP+Q0XaVKZL4X1KHxElKW1rdq1MjjibK8bic7NO15EdXR",
        "X-Received": "by 10.194.89.168 with SMTP id bp8mr15903212wjb.57.1463682128820; \n\tThu, 19 May 2016 11:22:08 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Thu, 19 May 2016 20:21:06 +0200",
        "Message-Id": "<1463682077-19339-23-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-Mailer": "git-send-email 2.8.1",
        "In-Reply-To": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "References": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "Subject": "[OpenWrt-Devel] [PATCH CC 23/34] ar71xx: enable sysupgrade for the\n\tOpenMesh OM5P-AC",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r49144\n---\n target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 7 ++++++-\n target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 6 ++++--\n 2 files changed, 10 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\nindex 9ca0f5b..1cfead9 100644\n--- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n@@ -72,6 +72,11 @@ platform_check_image_openmesh()\n \t\t\techo \"Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform\"\n \t\t\treturn 1\n \t\t\t;;\n+\t\tOM5PAC)\n+\t\t\t[ \"$board\" = \"om5p-ac\" ] && break\n+\t\t\techo \"Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform\"\n+\t\t\treturn 1\n+\t\t\t;;\n \t\tMR1750)\n \t\t\t[ \"$board\" = \"mr1750\" ] && break\n \t\t\techo \"Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform\"\n@@ -162,7 +167,7 @@ platform_do_upgrade_openmesh()\n \t\t\tkernel_start_addr1=0x9f1c0000\n \t\t\tkernel_start_addr2=0x9f8c0000\n \t\t\t;;\n-\t\tOM5P|MR600|MR900|MR1750)\n+\t\tOM5P|OM5PAC|MR600|MR900|MR1750)\n \t\t\tblock_size=$((64 * 1024))\n \t\t\ttotal_size=7995392\n \t\t\tkernel_start_addr1=0x9f0b0000\ndiff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\nindex 5053cec..eb5c01e 100755\n--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n@@ -301,7 +301,8 @@ platform_check_image() {\n \tom2p-hsv2 | \\\n \tom2p-lc | \\\n \tom5p | \\\n-\tom5p-an)\n+\tom5p-an | \\\n+\tom5p-ac)\n \t\tplatform_check_image_openmesh \"$magic_long\" \"$1\" && return 0\n \t\treturn 1\n \t\t;;\n@@ -530,7 +531,8 @@ platform_do_upgrade() {\n \tom2p-hsv2 | \\\n \tom2p-lc | \\\n \tom5p | \\\n-\tom5p-an)\n+\tom5p-an | \\\n+\tom5p-ac)\n \t\tplatform_do_upgrade_openmesh \"$ARGV\"\n \t\t;;\n \tunifi-outdoor-plus | \\\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "23/34"
    ]
}