get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 637054,
    "url": "http://patchwork.ozlabs.org/api/patches/637054/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1466169893-29962-3-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": "<1466169893-29962-3-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-06-17T13:24:43",
    "name": "[OpenWrt-Devel,CC,03/13] ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "eaa7cc7d57ffc36003e54f9ee13ebbab9b661e15",
    "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/1466169893-29962-3-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/637054/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/637054/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 3rWMWP3SJ9z9t1r\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Jun 2016 00:06:57 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 6AF85B92017;\n\tFri, 17 Jun 2016 16:01:21 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tFri, 17 Jun 2016 16:01:21 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id D381EB914F1\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tFri, 17 Jun 2016 15:25:03 +0200 (CEST)",
            "from mail-wm0-f47.google.com (mail-wm0-f47.google.com\n\t[74.125.82.47]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tFri, 17 Jun 2016 15:25:03 +0200 (CEST)",
            "by mail-wm0-f47.google.com with SMTP id a66so101328484wme.0\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tFri, 17 Jun 2016 06:25:03 -0700 (PDT)",
            "from sven-desktop.home.narfation.org\n\t(p2003007C6F7DD1FE04A0165FC0023ED9.dip0.t-ipconnect.de.\n\t[2003:7c:6f7d:d1fe:4a0:165f:c002:3ed9])\n\tby smtp.gmail.com with ESMTPSA id\n\tb4sm23114265wjd.16.2016.06.17.06.25.01\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 17 Jun 2016 06:25:02 -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=iD98ov9s; 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": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tCL_IP_EQ_HELO_IP=-2 (check from: .open-mesh. - helo:\n\t.mail-wm0-f47.google. -\n\thelo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; 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=LQK5dJ2djXOrXy/cr32f40/b/4mY2obFzxrxRRm9xRM=;\n\tb=iD98ov9s/5oWKgN9lnYlsYsP3ivwa8BZuXv6XMoPwvV8IhhHz9DqYE93802tWDzEtz\n\tj4pv+wbeaCC1AHwalUYY1xC/pGLdY3u0giJiHLKqHAtVctQQDV9bAxEnC+y8FVr/+qWH\n\twgG6/97W+H+NQnJQUwnpKDEfrsflX9xjlaj5bX30VWPdqXQpC8212a7vpm0ngnTOpAxh\n\tIw9gOnJxktpqN26Xomtr/35yOOWZZ7+dCRSAeEo4Tkg0f82E68ilRtzGuxgyFzWpGlIt\n\thtyI7QRZHFVTtgrYPnzbCpiVvSn01BpKPYs9+/ORqiUG6t1+m1frl7yk0PYbbzNPOden\n\tEKMw==",
        "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=LQK5dJ2djXOrXy/cr32f40/b/4mY2obFzxrxRRm9xRM=;\n\tb=Iu80n/AMoJakxz0qi4Yk04rHnvB6+QHHw/PqJ7i3JXBrZvDjCjKbJtdjp23sAe+jRt\n\tMgzqe+36ddpWh2+FuhGrecM0s4v+PJ8Bnlt5qFxN0t6ITVBmP/PNKkMxDIWRDe3gNOKo\n\tXKIQ6p3x1VTl+c14ejcMhkHgjZ9Im9IqigWDx6EyVfRH3KkvsYmaTP6hh62Rn7TWmpPN\n\trW2QyqcAXOBY/exHC/h7DIBUgNQCJbcskkUQJRTt+CrP4F1Esskc+fPXBhIVFjexdl8k\n\tLCSjioLooGC/tuPwY4PD0TqFB9flT8YhmDSRq3AvPL9NR/kHhEJzNQLUidMcV3Svwvkb\n\tGu/A==",
        "X-Gm-Message-State": "ALyK8tLIXdHY75FAynRaohy/ehYUrpdFL7cY/l8PJzKScn8Aa1EqWdoENx7z2bEDpxl+PfOn",
        "X-Received": "by 10.28.103.2 with SMTP id b2mr2463669wmc.28.1466169902609;\n\tFri, 17 Jun 2016 06:25:02 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Fri, 17 Jun 2016 15:24:43 +0200",
        "Message-Id": "<1466169893-29962-3-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-Mailer": "git-send-email 2.8.1",
        "In-Reply-To": "<1466169893-29962-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "References": "<1466169893-29962-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "Subject": "[OpenWrt-Devel] [PATCH CC 03/13] ar71xx: enable sysupgrade for the\n\tOpenMesh OM2P-HSv3",
        "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>",
        "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---\nBased on following CC backports from 2016-05-19:\n\n * https://patchwork.ozlabs.org/patch/624172/\n * https://patchwork.ozlabs.org/patch/624173/\n * https://patchwork.ozlabs.org/patch/624174/\n * https://patchwork.ozlabs.org/patch/624175/\n * https://patchwork.ozlabs.org/patch/624176/\n * https://patchwork.ozlabs.org/patch/624177/\n * https://patchwork.ozlabs.org/patch/624178/\n * https://patchwork.ozlabs.org/patch/624179/\n * https://patchwork.ozlabs.org/patch/624180/\n * https://patchwork.ozlabs.org/patch/624181/\n * https://patchwork.ozlabs.org/patch/624182/\n * https://patchwork.ozlabs.org/patch/624183/\n * https://patchwork.ozlabs.org/patch/624184/\n * https://patchwork.ozlabs.org/patch/624185/\n * https://patchwork.ozlabs.org/patch/624186/\n * https://patchwork.ozlabs.org/patch/624187/\n * https://patchwork.ozlabs.org/patch/624188/\n * https://patchwork.ozlabs.org/patch/624189/\n * https://patchwork.ozlabs.org/patch/624190/\n * https://patchwork.ozlabs.org/patch/624191/\n * https://patchwork.ozlabs.org/patch/624192/\n * https://patchwork.ozlabs.org/patch/624193/\n * https://patchwork.ozlabs.org/patch/624194/\n * https://patchwork.ozlabs.org/patch/624195/\n * https://patchwork.ozlabs.org/patch/624196/\n * https://patchwork.ozlabs.org/patch/624197/\n * https://patchwork.ozlabs.org/patch/624198/\n * https://patchwork.ozlabs.org/patch/624199/\n * https://patchwork.ozlabs.org/patch/624200/\n * https://patchwork.ozlabs.org/patch/624201/\n * https://patchwork.ozlabs.org/patch/624202/\n * https://patchwork.ozlabs.org/patch/624203/\n * https://patchwork.ozlabs.org/patch/624200/\n * https://patchwork.ozlabs.org/patch/624205/\n\nIt is a backport of the patch for trunk from 2016-05-20 which waits to be\naccepted as well:\n\n * https://patchwork.ozlabs.org/patch/624538/\n\n target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 1 +\n target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 ++\n 2 files changed, 3 insertions(+)",
    "diff": "diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\nindex 209cdaa..0e8ea27 100644\n--- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh\n@@ -63,6 +63,7 @@ platform_check_image_openmesh()\n \t\t\t[ \"$board\" = \"om2p-lc\" ] && break\n \t\t\t[ \"$board\" = \"om2p-hs\" ] && break\n \t\t\t[ \"$board\" = \"om2p-hsv2\" ] && break\n+\t\t\t[ \"$board\" = \"om2p-hsv3\" ] && 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;;\ndiff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\nindex d3e8a79..4fb5b34 100755\n--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh\n@@ -299,6 +299,7 @@ platform_check_image() {\n \tom2pv2 | \\\n \tom2p-hs | \\\n \tom2p-hsv2 | \\\n+\tom2p-hsv3 | \\\n \tom2p-lc | \\\n \tom5p | \\\n \tom5p-an | \\\n@@ -530,6 +531,7 @@ platform_do_upgrade() {\n \tom2pv2 | \\\n \tom2p-hs | \\\n \tom2p-hsv2 | \\\n+\tom2p-hsv3 | \\\n \tom2p-lc | \\\n \tom5p | \\\n \tom5p-an | \\\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "03/13"
    ]
}