get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 605011,
    "url": "http://patchwork.ozlabs.org/api/patches/605011/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/8373904cdf1fee9724d6834b56efaa706a92fc31.1459541702.git.yann.morin.1998@free.fr/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<8373904cdf1fee9724d6834b56efaa706a92fc31.1459541702.git.yann.morin.1998@free.fr>",
    "list_archive_url": null,
    "date": "2016-04-01T20:25:31",
    "name": "[4/4,v2] core/pkg-infra: download git submodules if the package wants them",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "1605d580f993d3f5df61081d5b1db8da51ecc508",
    "submitter": {
        "id": 13903,
        "url": "http://patchwork.ozlabs.org/api/people/13903/?format=api",
        "name": "Yann E. MORIN",
        "email": "yann.morin.1998@free.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/8373904cdf1fee9724d6834b56efaa706a92fc31.1459541702.git.yann.morin.1998@free.fr/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/605011/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/605011/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 3qcCZ622vCz9sD5\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Apr 2016 07:25:50 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 43C09A6384;\n\tFri,  1 Apr 2016 20:25:49 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id apWTUzkvLvfV; Fri,  1 Apr 2016 20:25:48 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E302AA636E;\n\tFri,  1 Apr 2016 20:25:42 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 493871C0B41\n\tfor <buildroot@lists.busybox.net>;\n\tFri,  1 Apr 2016 20:25:40 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 4515423189\n\tfor <buildroot@lists.busybox.net>;\n\tFri,  1 Apr 2016 20:25:40 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 3IBcP7M+jmXf for <buildroot@lists.busybox.net>;\n\tFri,  1 Apr 2016 20:25:39 +0000 (UTC)",
            "from mail-wm0-f67.google.com (mail-wm0-f67.google.com\n\t[74.125.82.67])\n\tby silver.osuosl.org (Postfix) with ESMTPS id EFC6D2CDF2\n\tfor <buildroot@buildroot.org>; Fri,  1 Apr 2016 20:25:38 +0000 (UTC)",
            "by mail-wm0-f67.google.com with SMTP id i204so965948wmd.0\n\tfor <buildroot@buildroot.org>; Fri, 01 Apr 2016 13:25:38 -0700 (PDT)",
            "from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66])\n\tby smtp.gmail.com with ESMTPSA id\n\tw203sm559814wmg.14.2016.04.01.13.25.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 01 Apr 2016 13:25:36 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com header.b=jsZ0wcTe;\n\tdkim-atps=neutral",
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=kSqClYMJ9U5Wwh1vBGfCOFIi387kvrLKu/321xtwQhg=;\n\tb=jsZ0wcTeWvdiiGGihTd2jc5uAqjzgNYylFD5kzE5q965Ts2uy0SfRBJwlybbe0o40M\n\tW/VT35HAxkj2FeU8L85qw/SCsZUdJWRbV/qc1IBGwnXcEX9usrm9VAGyZiDoJYVH3Q+M\n\ty6xxAefhtYsdwvx4c4E91v90r/YUdgICSKolz+zWBYund+4wIVeCL6zP+N7sWx4r0w/O\n\tsrifzswO7GLHJad3HBzkIa42L9G8Pg/Xfut1vf5DULUH20ILqrLgot+ZttWl5EJV7xb6\n\tUgGDO9XFn6cDEEaE7Kgk/P+KniyzawgyPps6Ma+nsFGRRz8QXLXq2v+vn+NyW1sXtdZH\n\teQCg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=kSqClYMJ9U5Wwh1vBGfCOFIi387kvrLKu/321xtwQhg=;\n\tb=DAC/s7t1g2FVOB9CnIEBDJmQUPQ8ZfHPuXOMpJSWrGypFuXBV5DGILWLLZVsZhnEO2\n\tIRnwpB6TkIPtSo8yaWO7RxDUst5d80xfakJ75ssjdUynEK+Z1YMBkftRynGdE5vDo8Pr\n\tk5F69foo2Ewjah3/KGqXUwDgGGvBkmQC6syGoXYvAcp8qRrBVtxl8Knoy1Hw3ocCEFj3\n\t+NR1Ijp7xkWuqvZzKTlXkHyDfeOzZkW4qODvAaKWltejvzCNChdsWmVeuxgkhcpi/Rpu\n\tgBm0R4UIt5OibJTSxP8PvNjVZ3A0k5PehVV51jr86nyDbmAP8QjQ2yK4votGL2XYZ/bK\n\tEA8g==",
        "X-Gm-Message-State": "AD7BkJJPwRG0PVNK72GgrBFW2kqew0uz5HE90vxsps3+4Ps4pOFktMdGP00qmS6EqrLl/Q==",
        "X-Received": "by 10.28.211.130 with SMTP id k124mr553487wmg.7.1459542337595;\n\tFri, 01 Apr 2016 13:25:37 -0700 (PDT)",
        "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>",
        "To": "buildroot@buildroot.org",
        "Date": "Fri,  1 Apr 2016 22:25:31 +0200",
        "Message-Id": "<8373904cdf1fee9724d6834b56efaa706a92fc31.1459541702.git.yann.morin.1998@free.fr>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<cover.1459541702.git.yann.morin.1998@free.fr>",
        "References": "<cover.1459541702.git.yann.morin.1998@free.fr>",
        "Cc": "Aleksandar Simeonov <aleksandar@barix.com>,\n\t\"Yann E. MORIN\" <yann.morin.1998@free.fr>",
        "Subject": "[Buildroot] [PATCH 4/4 v2] core/pkg-infra: download git submodules\n\tif the package wants them",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Add a new package variable that packages can set to specify that they\nneed git submodules.\n\nOnly accept this option if the download method is git, as we can not get\nsubmodules via an http download (via wget).\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Aleksandar Simeonov <aleksandar@barix.com>\n\n---\nChanges v1 -> v2:\n  - properly accept the -r in the download wrapper  (Aleksandar)\n---\n package/pkg-download.mk     | 1 +\n package/pkg-generic.mk      | 8 ++++++++\n support/download/dl-wrapper | 7 ++++---\n 3 files changed, 13 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/package/pkg-download.mk b/package/pkg-download.mk\nindex 1332e66..2324a07 100644\n--- a/package/pkg-download.mk\n+++ b/package/pkg-download.mk\n@@ -76,6 +76,7 @@ export BR_NO_CHECK_HASH_FOR =\n define DOWNLOAD_GIT\n \t$(EXTRA_ENV) $(DL_WRAPPER) -b git \\\n \t\t-o $(DL_DIR)/$($(PKG)_SOURCE) \\\n+\t\t$(if $($(PKG)_GIT_SUBMODULES),-r) \\\n \t\t$(QUIET) \\\n \t\t-- \\\n \t\t$($(PKG)_SITE) \\\ndiff --git a/package/pkg-generic.mk b/package/pkg-generic.mk\nindex 3904c09..fee7eb0 100644\n--- a/package/pkg-generic.mk\n+++ b/package/pkg-generic.mk\n@@ -453,6 +453,14 @@ ifndef $(2)_SITE_METHOD\n  endif\n endif\n \n+# Do not accept to download git submodule if not using the git method\n+ifneq ($$($(2)_GIT_SUBMODULES),)\n+ ifneq ($$($(2)_SITE_METHOD),git)\n+  $$(error $(2) declares having git sub-modules, but does not use the \\\n+\t   'git' method (uses '$$($(2)_SITE_METHOD)' instead))\n+ endif\n+endif\n+\n ifeq ($$($(2)_SITE_METHOD),local)\n ifeq ($$($(2)_OVERRIDE_SRCDIR),)\n $(2)_OVERRIDE_SRCDIR = $$($(2)_SITE)\ndiff --git a/support/download/dl-wrapper b/support/download/dl-wrapper\nindex ef2d872..f944b71 100755\n--- a/support/download/dl-wrapper\n+++ b/support/download/dl-wrapper\n@@ -21,15 +21,16 @@ set -e\n \n main() {\n     local OPT OPTARG\n-    local backend output hfile quiet\n+    local backend output hfile recurse quiet\n \n     # Parse our options; anything after '--' is for the backend\n-    while getopts :hb:o:H:q OPT; do\n+    while getopts :hb:o:H:rq OPT; do\n         case \"${OPT}\" in\n         h)  help; exit 0;;\n         b)  backend=\"${OPTARG}\";;\n         o)  output=\"${OPTARG}\";;\n         H)  hfile=\"${OPTARG}\";;\n+        r)  recurse=\"-r\";;\n         q)  quiet=\"-q\";;\n         :)  error \"option '%s' expects a mandatory argument\\n\" \"${OPTARG}\";;\n         \\?) error \"unknown option '%s'\\n\" \"${OPTARG}\";;\n@@ -82,7 +83,7 @@ main() {\n     # If the backend fails, we can just remove the temporary directory to\n     # remove all the cruft it may have left behind. Then we just exit in\n     # error too.\n-    if ! \"${OLDPWD}/support/download/${backend}\" ${quiet} \"${tmpf}\" \"${@}\"; then\n+    if ! \"${OLDPWD}/support/download/${backend}\" ${quiet} ${recurse} \"${tmpf}\" \"${@}\"; then\n         rm -rf \"${tmpd}\"\n         exit 1\n     fi\n",
    "prefixes": [
        "4/4",
        "v2"
    ]
}