get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1241522,
    "url": "http://patchwork.ozlabs.org/api/patches/1241522/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20200220160119.3407-7-patrick.havelange@essensium.com/",
    "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": "<20200220160119.3407-7-patrick.havelange@essensium.com>",
    "list_archive_url": null,
    "date": "2020-02-20T16:01:16",
    "name": "[v3,07/10] docs/manual/adding-packages-cargo: update doc for new infra",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "c6f105e5f5f9f880b97f5aed60371b84e9e7962d",
    "submitter": {
        "id": 75424,
        "url": "http://patchwork.ozlabs.org/api/people/75424/?format=api",
        "name": "Patrick Havelange",
        "email": "patrick.havelange@essensium.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20200220160119.3407-7-patrick.havelange@essensium.com/mbox/",
    "series": [
        {
            "id": 159771,
            "url": "http://patchwork.ozlabs.org/api/series/159771/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=159771",
            "date": "2020-02-20T16:01:10",
            "name": "[v3,01/10] package/pkg-cargo.mk: Introduce the cargo package infrastructure.",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/159771/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1241522/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1241522/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming-buildroot@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming-buildroot@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=busybox.net (client-ip=140.211.166.133;\n\thelo=hemlock.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dmarc=fail (p=none dis=none)\n\theader.from=essensium.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=essensium.com header.i=@essensium.com\n\theader.a=rsa-sha256 header.s=google header.b=KhmArhL8; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 48NfVK3sZhz9sRG\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n\tFri, 21 Feb 2020 03:02:01 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 126BA87E46;\n\tThu, 20 Feb 2020 16:01:55 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1y+wn9v7N+ZN; Thu, 20 Feb 2020 16:01:54 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 1857287E5D;\n\tThu, 20 Feb 2020 16:01:53 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9EF191BF9B3\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:46 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 95FDF879A5\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:46 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0WphBKo8sMRl for <buildroot@lists.busybox.net>;\n\tThu, 20 Feb 2020 16:01:45 +0000 (UTC)",
            "from mail-wr1-f49.google.com (mail-wr1-f49.google.com\n\t[209.85.221.49])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 0188587D17\n\tfor <buildroot@buildroot.org>; Thu, 20 Feb 2020 16:01:44 +0000 (UTC)",
            "by mail-wr1-f49.google.com with SMTP id w15so5239007wru.4\n\tfor <buildroot@buildroot.org>; Thu, 20 Feb 2020 08:01:44 -0800 (PST)",
            "from ph-ThinkPad-E560.local.ess-mail.com\n\t(ip-188-118-3-185.reverse.destiny.be. [188.118.3.185])\n\tby smtp.gmail.com with ESMTPSA id\n\th5sm5483691wmf.8.2020.02.20.08.01.41\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 20 Feb 2020 08:01:42 -0800 (PST)"
        ],
        "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;\n\td=essensium.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=aPPknx5avZGQdOmr2AARfWQLHHbKkPKR1+mhtx2SLJ4=;\n\tb=KhmArhL8rZtaFVGZvqUAu58bKpBSJ+U9zIErcP5aFmC7PzsZtcF8/8W4JxbzOyyM1X\n\tK6qdSCCL9E3ruhCX3VX9iWcvVf2Mq8rnCd+8zNpTc6M4/M7/F42SX40d5yTtL2xeBW0T\n\t9wtvx3qT8gfpwz2m5wfyP13Ngua22Vo56X6JW2ckn89piAb59nU1JkWf8IOb4wxCuP30\n\tjDPdRva5Z5+ydf238/ZOR1248D23NNTSS6XG+wuHQBYUEukndHKrlp0ls19Kl7RFPHWY\n\tkR1PuemOYLR2v4YctQun3hhfuq/itDmO/g/mFUrnND5iA51DlE5mOIp0L9Us5ALXVBth\n\tGvqw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=aPPknx5avZGQdOmr2AARfWQLHHbKkPKR1+mhtx2SLJ4=;\n\tb=fp2P+5ZCn5k8FUh2V2/jEfbUNAif/B9sRfN28f+wkADaqNPrLGyBFwmlhgDOa/I/XV\n\twJu0JqjuHir7ObNdiMGS2oJAs3N5qS6IS9nNmtAU5DQwL/lZrIEinoArP6/CiZTZ/UMd\n\tKwrUOwVRpEGg/kq5LEW7PJWBIWETg+G5y2r3mLBXUmlHn7lUgJud/af2VWyqh/9TPWzj\n\txuiBSyArTAncQgtWd2H1Y1ZV3sXFgdiWwNODjaFl0wywM5yR8SOm80stugBhf2ZPkS62\n\tQDNzYZEfLpYlsOW07jBBg78eUaMT2YM5Gc1vmMmTOE+Z73QDZ7hi82Mf/ggfDTZ1hPIV\n\tN6OQ==",
        "X-Gm-Message-State": "APjAAAU42fjko/117eJGccZAt8JHLQSpPkza2qdGJH0fLMigs4S6d4vW\n\tKhMgrJaiIqOOp7XYUD9Mg0gHd4ifwUT89Q==",
        "X-Google-Smtp-Source": "APXvYqyLLiaHfeenPLpD2W0Rl7c+x4x2uHPruFZCR6qKDv1Xernb+2yU1S+/4iLejbilJf5JKqNXHg==",
        "X-Received": "by 2002:a5d:6802:: with SMTP id\n\tw2mr42566301wru.353.1582214502885; \n\tThu, 20 Feb 2020 08:01:42 -0800 (PST)",
        "From": "Patrick Havelange <patrick.havelange@essensium.com>",
        "To": "buildroot@buildroot.org",
        "Date": "Thu, 20 Feb 2020 17:01:16 +0100",
        "Message-Id": "<20200220160119.3407-7-patrick.havelange@essensium.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20200220160119.3407-1-patrick.havelange@essensium.com>",
        "References": "<20200220160119.3407-1-patrick.havelange@essensium.com>",
        "MIME-Version": "1.0",
        "Subject": "[Buildroot] [PATCH v3 07/10] docs/manual/adding-packages-cargo:\n\tupdate doc for new infra",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.29",
        "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>",
        "Cc": "Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>,\n\tPatrick Havelange <patrick.havelange@essensium.com>,\n\tSam Voss <sam.voss@gmail.com>,\n\t\"Yann E . MORIN\" <yann.morin.1998@free.fr>, \n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>\n---\n docs/manual/adding-packages-cargo.txt | 16 ++++------------\n 1 file changed, 4 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/docs/manual/adding-packages-cargo.txt b/docs/manual/adding-packages-cargo.txt\nindex 9a496224e3..e7d03eb7b5 100644\n--- a/docs/manual/adding-packages-cargo.txt\n+++ b/docs/manual/adding-packages-cargo.txt\n@@ -61,16 +61,8 @@ Those will then replace the commands from the cargo infrastructure.\n ==== About Dependencies Management\n \n A crate can depend on other libraries from crates.io or git repositories, listed\n-in its Cargo.toml file. Before starting a build, Cargo usually downloads\n-automatically them. This step can also be performed independently, via the\n-+cargo fetch+ command.\n+in its Cargo.toml file. Before starting a build, the +cargo vendor+ command\n+will be run and will take care of downloading those dependencies.\n \n-Cargo maintains a local cache of the registry index and of git checkouts of the\n-crates, whose location is given by +$CARGO_HOME+. As seen in the package\n-Makefile example at line 15, this environment variable is set to\n-+$(HOST_DIR)/share/cargo+.\n-\n-This dependency download mechanism is not convenient when performing an offline\n-build, as Cargo will fail to fetch the dependencies. In that case, it is advised\n-to generate a tarball of the dependencies using the +cargo vendor+ and add it to\n-+FOO_EXTRA_DOWNLOADS+.\n+The final source tarball will contain all the required dependencies, effectively\n+permitting us to do an offline build.\n",
    "prefixes": [
        "v3",
        "07/10"
    ]
}