get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 811601,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/811601/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/swupdate/patch/20170908134547.9170-3-christian.storm@siemens.com/",
    "project": {
        "id": 58,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/58/?format=api",
        "name": "swupdate development",
        "link_name": "swupdate",
        "list_id": "swupdate.googlegroups.com",
        "list_email": "swupdate@googlegroups.com",
        "web_url": "https://github.com/sbabic/swupdate",
        "scm_url": "git://github.com/sbabic/swupdate",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170908134547.9170-3-christian.storm@siemens.com>",
    "list_archive_url": null,
    "date": "2017-09-08T13:45:47",
    "name": "[3/3] tmpdir: adapt documentation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "19e9c0d7951103bb3b9b771cc57102d4861e3268",
    "submitter": {
        "id": 72180,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/72180/?format=api",
        "name": "Storm, Christian",
        "email": "christian.storm@siemens.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/swupdate/patch/20170908134547.9170-3-christian.storm@siemens.com/mbox/",
    "series": [
        {
            "id": 2217,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/2217/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/swupdate/list/?series=2217",
            "date": "2017-09-08T13:45:47",
            "name": "[1/3] tmpdir: introduce get_tmpdir() respecting TMPDIR",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2217/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/811601/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/811601/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<swupdate+bncBDD6BWV65QPBBHF7ZLGQKGQE3XAO3JQ@googlegroups.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:4010:c07::239;\n\thelo=mail-lf0-x239.google.com;\n\tenvelope-from=swupdate+bncbdd6bwv65qpbbhf7zlgqkgqe3xao3jq@googlegroups.com;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"pPVX61VG\"; dkim-atps=neutral"
        ],
        "Received": [
            "from mail-lf0-x239.google.com (mail-lf0-x239.google.com\n\t[IPv6:2a00:1450:4010:c07::239])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpdv43B4Gz9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 23:48:15 +1000 (AEST)",
            "by mail-lf0-x239.google.com with SMTP id c8sf392823lfe.21\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 08 Sep 2017 06:48:15 -0700 (PDT)",
            "by 10.25.198.16 with SMTP id w16ls17441lff.24.gmail; Fri, 08 Sep\n\t2017 06:48:12 -0700 (PDT)",
            "from thoth.sbs.de (thoth.sbs.de. [192.35.17.2])\n\tby gmr-mx.google.com with ESMTPS id\n\tr8si190730wma.4.2017.09.08.06.48.12 for <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 06:48:12 -0700 (PDT)",
            "from mail2.siemens.de (mail2.siemens.de [139.25.208.11])\n\tby thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id v88DmC31009466\n\t(version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)\n\tfor <swupdate@googlegroups.com>; Fri, 8 Sep 2017 15:48:12 +0200",
            "from MD1KR9XC.ad001.siemens.net ([139.25.69.251])\n\tby mail2.siemens.de (8.15.2/8.15.2) with ESMTP id v88DmBKm021896;\n\tFri, 8 Sep 2017 15:48:12 +0200"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; t=1504878493; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=j3z8K6OnVUtkP5Tn788qgiolToakG0iWilwbGJAbgcT9ATBks8LXfn3Ki3RdKQVKod\n\twc/geGtCQpUjnoGo5ez1hp65ffU054ZupPuSDAG8rFv8TmoX21cdnyRuNB5mNVj55WMz\n\tY83ydiTZ7SjuwqFyytj+f+v8pivwAIxQsd5bHAzknlr8WX/zwpGX4BAqi+XK0T0JZTu6\n\tfy1p0DLobK0g3LvL124cYdyHY9ss+N/+SAWaWkR54MfYKCuUZw43DhVNTxX5eQVZE6Lo\n\ttxrtU033M1N5ecEuK0yVtDv0eRpJ8ezTfEiW8mD9S9HbajduAt54w4a9M5ATA2fnrVbg\n\twmHg==",
            "i=1; a=rsa-sha256; t=1504878492; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=vPiwgT8G24/eFZJRatIBCGGJPXOSX+9CZPwUBkhC7ov3CG48/bAOXM7wENRZEqqoGQ\n\tG+0og3/KQabgxWrqjiXBt1JApeyViR+OFOuV0hdterLECS/syksLTxWKAvO0XwCK4fh4\n\tYfUmDKuFSYPu/oZ26jfl9TxJZYhn5HgoSMg8o3t2kfy3V5Ls5mt3EwXl9z63bhQDwl3G\n\t3mXUrkFf0s3KgHupv2ANTnH/a5rbe543KFeMggDquUHy2I/RN696iC36A7LgaXHeGHrE\n\tpwa1rz5gGU0tW1B36MnpruHwigrejtH2Quw7Bygd9K00FclR3SuKuQ8MDspeFU/ZaKVX\n\twUhw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:references:in-reply-to:message-id\n\t:date:subject:cc:to:from:arc-authentication-results\n\t:arc-message-signature:mime-version:sender:dkim-signature\n\t:arc-authentication-results;\n\tbh=YcquJXh+ohJrXxDVSXgIqY4s+tLwHUQOaUWmduQEBGM=;\n\tb=EsT/FDCn8qLN+55C66cZI/2QMffxVkRSut9dekXS1hcDVc8p0H5ynqUUuPUxiIg0lf\n\t/kGOKqzvvRHQczEevXUjoLxBEaDnaF5zXzsDM3pyxnQETd6t4+0Bm7scmxbUlifCk/nq\n\tI+X5i0fyce89FMpHtwoL8YhncMU8jHyQvyb4iKPOVs4B7+33J1ibW9MR1wN1tAuHl24R\n\tJaRqDti7uf+gQBaMeZWyCgGOsQPGHI9H0XgVG7eGfRSaMgk5Tq8zdBMpIExzaH9yctuo\n\te2FpmKpRggdmJCsaoBQtKe1VnBHCVjW/W06uNNvlS+OnX4agyceKeUvnxVt+aakGRtRc\n\t6mYg==",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=references:in-reply-to:message-id:date:subject:cc:to:from\n\t:arc-authentication-results;\n\tbh=NWJK241U4wyLZA0EF4du8nCYS5VA325UY2tOAApRkQ8=;\n\tb=d5Gnx8pP5uCyqbP/00jG0MzbB22ah+q+p7RPHpfzZXl3MEJJdLirq+aWBU1IeKslzB\n\tgDs/96foU0DpkqOLIO7+BxJTDxaTIwSQNOtX2lEUCTUX9rHWuEkKv59M2rAP4AnQq7MK\n\tZ0IuCon4Pwy4l8WvjVwAfGS8bD1PyIvgSJq1wkqtlO1yaugyfKyD+vR6lPuOS3iztEm3\n\tgkHoT58heZdcEmCKNYh/LosPOtAL/Y2SHrSd2p4Uafaox3wlScwBY9eD6Z6ZOm9CMnso\n\tk9xcKyCc3GzPP3y1dwThgB4bVrLopXcVxNVr5N1bPLvw3U7DenUY2pT0NPAVAXbgEPTh\n\tbg/A=="
        ],
        "ARC-Authentication-Results": [
            "i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.2 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com",
            "i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 192.35.17.2 is neither permitted nor denied\n\tby best guess record for domain of\n\tchristian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:x-original-sender:x-original-authentication-results\n\t:precedence:mailing-list:list-id:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=YcquJXh+ohJrXxDVSXgIqY4s+tLwHUQOaUWmduQEBGM=;\n\tb=pPVX61VGD9RJKVpupXNCdzSUtYxw0d+m72mqx1CkJfg6bjWmmdNmpvi6vOB4NRDaQs\n\tKf/Rv0cdF1LF+Ir9r54kZcXmlI1J+v434VGkrDz3ZYm2L5WJYLmJ3Q9P3pEBmhFoUly7\n\t+I1MHMt+0tMwI3nJj170SM2L1TjDJ6ddXCRQ1jPsqkmSpYnnq5T965RW3VhcZ8QoxA7m\n\tXI8EdVamvaSpihTvqqSUG/QeIfX7YGoK5Joo54cvkhIpQOiueKyL96TfAoT0/FYzgKE+\n\taBQLo15OJgJxIEqqHUucg5OlB3yxOaSUeFoEJlf1DbEbjNVRRYunSVoxFL0A5jwuT2DX\n\t37MQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:mime-version:from:to:cc:subject:date\n\t:message-id:in-reply-to:references:x-original-sender\n\t:x-original-authentication-results:precedence:mailing-list:list-id\n\t:x-spam-checked-in-group:list-post:list-help:list-archive\n\t:list-subscribe:list-unsubscribe;\n\tbh=YcquJXh+ohJrXxDVSXgIqY4s+tLwHUQOaUWmduQEBGM=;\n\tb=Mpnu3Mya/ncGmUn7HTsImLxtmOrbAqsOPSJK/9n1Y/jiKswtPk/tbIIJuwnR1UtoaM\n\tUz6S8/cRbjPsvoB2HB5U3Gd1fj5FCViCwDrJeR1aRmxns+vjXSELLMPGKh53ek2jQYZB\n\tt7ULE2iETd7sww+diI97j0QZcIsDRt0DLp8zStKVqWgFI9BSjFRPk+EYv3N0cvTRwTB9\n\tWtehVcKsJZZyuG0pUaV4QCrzL9EFOTuCbUNRfICs2Li3GrZxhmke78V9h+Mg8iP8uv5S\n\tyOnkEqeXyxb1yPBFw1Ejc21CSn6YpBWi1RnU5eHOWbPxde9nVxsHQQv09QRWR7tWN6kC\n\tOa+g==",
        "Sender": "swupdate@googlegroups.com",
        "X-Gm-Message-State": "AHPjjUgTD1so9dtZ5b3C5glRG292rLa+Xa2VMSzLwq9cg1kflrMTMD6H\n\tIlDDZaj83QgLhw==",
        "X-Google-Smtp-Source": "AOwi7QCbsjF9cMwlSCyKNoGc2WDTqzOKGCLVAG71E2n6hk8kRykBarcK+KKYa3nOA1u+MdqKSPMKUQ==",
        "X-Received": [
            "by 10.46.21.92 with SMTP id 28mr5338ljv.5.1504878493101;\n\tFri, 08 Sep 2017 06:48:13 -0700 (PDT)",
            "by 10.25.216.209 with SMTP id r78mr228887lfi.43.1504878492463;\n\tFri, 08 Sep 2017 06:48:12 -0700 (PDT)"
        ],
        "MIME-Version": "1.0",
        "X-BeenThere": "swupdate@googlegroups.com",
        "Received-SPF": "neutral (google.com: 192.35.17.2 is neither permitted nor\n\tdenied by best guess record for domain of\n\tchristian.storm@siemens.com) client-ip=192.35.17.2; ",
        "From": "Christian Storm <christian.storm@siemens.com>",
        "To": "swupdate@googlegroups.com",
        "Cc": "Christian Storm <christian.storm@siemens.com>",
        "Subject": "[swupdate] [PATCH 3/3] tmpdir: adapt documentation",
        "Date": "Fri,  8 Sep 2017 15:45:47 +0200",
        "Message-Id": "<20170908134547.9170-3-christian.storm@siemens.com>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170908134547.9170-1-christian.storm@siemens.com>",
        "References": "<20170908134547.9170-1-christian.storm@siemens.com>",
        "X-Original-Sender": "christian.storm@siemens.com",
        "X-Original-Authentication-Results": "gmr-mx.google.com;       spf=neutral\n\t(google.com: 192.35.17.2 is neither permitted nor denied by best\n\tguess record\n\tfor domain of christian.storm@siemens.com)\n\tsmtp.mailfrom=christian.storm@siemens.com",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Precedence": "list",
        "Mailing-list": "list swupdate@googlegroups.com;\n\tcontact swupdate+owners@googlegroups.com",
        "List-ID": "<swupdate.googlegroups.com>",
        "X-Spam-Checked-In-Group": "swupdate@googlegroups.com",
        "X-Google-Group-Id": "605343134186",
        "List-Post": "<https://groups.google.com/group/swupdate/post>,\n\t<mailto:swupdate@googlegroups.com>",
        "List-Help": "<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>",
        "List-Archive": "<https://groups.google.com/group/swupdate",
        "List-Subscribe": "<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>",
        "List-Unsubscribe": "<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"
    },
    "content": "Adapt the documentation to mention the use of $TMPDIR\nand /tmp as a fall-back if $TMPDIR is unset.\n\nSigned-off-by: Christian Storm <christian.storm@siemens.com>\n---\n doc/source/swupdate.rst | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/doc/source/swupdate.rst b/doc/source/swupdate.rst\nindex 883ca45..4df0b6b 100644\n--- a/doc/source/swupdate.rst\n+++ b/doc/source/swupdate.rst\n@@ -172,7 +172,9 @@ the image that must be installed.\n \n The feature can be set on image basis, that means that a user can\n decide which partial images should be streamed. If not streamed (see\n-installed-directly flag), files are temporary extracted into /tmp.\n+installed-directly flag), files are temporary extracted into the directory\n+pointed to by the environment variable ``TMPDIR`` with ``/tmp`` as\n+fall-back if ``TMPDIR`` is not set.\n Of course, by streaming it is not possible to make checks on the whole delivered\n software before installing.\n The temporary copy is done only when updated from network. When the image\n@@ -181,8 +183,9 @@ is stored on an external storage, there is no need of that copy.\n Images fully streamed\n ---------------------\n \n-In case of remote update, SWUpdate extracts relevant images\n-from the stream and copy them into /tmp before calling the handlers.\n+In case of remote update, SWUpdate extracts relevant images from the stream\n+and copies them into the directory pointed to by the environment variable \n+``TMPDIR`` (if unset, to ``/tmp``) before calling the handlers.\n This guarantee that an update is initiated only if all parts are present and\n correct. However, on some systems with less resources, the amount of RAM\n to copy the images could be not enough, for example if the filesystem on\n",
    "prefixes": [
        "3/3"
    ]
}