Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/453144/?format=api
{ "id": 453144, "url": "http://patchwork.ozlabs.org/api/patches/453144/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/5f50190fe62d33438bfe4c68ab566698c63d5102.1427037564.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": "<5f50190fe62d33438bfe4c68ab566698c63d5102.1427037564.git.yann.morin.1998@free.fr>", "list_archive_url": null, "date": "2015-03-22T15:21:00", "name": "[1/7,v3] support/download: make hash file optional", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "123465137e2c673f72079a13b13d8f8db42e3e4b", "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/5f50190fe62d33438bfe4c68ab566698c63d5102.1427037564.git.yann.morin.1998@free.fr/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/453144/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/453144/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 silver.osuosl.org (silver.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id B6DE2140146\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 23 Mar 2015 02:21:18 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 0C145321EC;\n\tSun, 22 Mar 2015 15:21:18 +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 qfgQNAOAAiQt; Sun, 22 Mar 2015 15:21:16 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 053DC2FBF5;\n\tSun, 22 Mar 2015 15:21:16 +0000 (UTC)", "from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 587821C2097\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:11 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 53C49A2A0A\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:11 +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 cRu03pLebWdE for <buildroot@lists.busybox.net>;\n\tSun, 22 Mar 2015 15:21:10 +0000 (UTC)", "from mail-wg0-f51.google.com (mail-wg0-f51.google.com\n\t[74.125.82.51])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 5C869A2A53\n\tfor <buildroot@buildroot.org>; Sun, 22 Mar 2015 15:21:10 +0000 (UTC)", "by wgra20 with SMTP id a20so127152096wgr.3\n\tfor <buildroot@buildroot.org>; Sun, 22 Mar 2015 08:21:09 -0700 (PDT)", "from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66])\n\tby mx.google.com with ESMTPSA id\n\t14sm15244710wjv.29.2015.03.22.08.21.07\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 22 Mar 2015 08:21:08 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org; dkim=fail\n\treason=\"verification failed; unprotected key\"\n\theader.d=gmail.com header.i=@gmail.com header.b=dooEiC/b;\n\tdkim-adsp=none (unprotected policy); dkim-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=rQOe4g3vhnT/xHi7fOgu56+/aJghKkXHKV8GAzLND14=;\n\tb=dooEiC/b17g9+NnMvDv0QvLPe94FGfhHQvdCyDmlCuKenRpP024+QszjZEg7N6Qyd5\n\tLWv3V81n+/riXkg255qo3IGCIvIeuaLKMERMr6UmgYNn2g7bG0K/vjB7PVrh+v6cThXx\n\tX9glEHFASwh34ZYyT0BEyce7ZDIMkMu0DKvSpGh34lelJ6Ti58AZ1nKr5WlaqXGz+qkI\n\ttd5r1+6uVzhhrsWNhlITP0jiJcRhUs87ezDDDS4RtjUsoNh+ua4Ipjb190uR7/rK6kds\n\t5mNlGQHXLzdtIQlITvI5T3iedE03Y6YZ1oDJ8nYDiOu9vtXymikqD4FsULoKOwhPWWEU\n\tCNhw==", "X-Received": "by 10.194.121.68 with SMTP id\n\tli4mr178440569wjb.138.1427037669070; \n\tSun, 22 Mar 2015 08:21:09 -0700 (PDT)", "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "To": "buildroot@buildroot.org", "Date": "Sun, 22 Mar 2015 16:21:00 +0100", "Message-Id": "<5f50190fe62d33438bfe4c68ab566698c63d5102.1427037564.git.yann.morin.1998@free.fr>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<cover.1427037564.git.yann.morin.1998@free.fr>", "References": "<cover.1427037564.git.yann.morin.1998@free.fr>", "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\t\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "Subject": "[Buildroot] [PATCH 1/7 v3] support/download: make hash file optional", "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": "Currently, specifying a hash file for our download wrapper is mandatory.\n\nHowever, when we download a git, svn, bzr, hg or cvs tree, there's by\ndesign no hash to check the download against.\n\nSince we're going to have hash checking mandatory when a hash file\nexists, this would break those downloads from a repository.\n\nSo, make specifying a hash file optional when calling our download\nwrapper and bail out early from the check-hash script if no hash file is\nspecified.\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nReviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>\n---\n support/download/check-hash | 2 +-\n support/download/dl-wrapper | 3 ---\n 2 files changed, 1 insertion(+), 4 deletions(-)", "diff": "diff --git a/support/download/check-hash b/support/download/check-hash\nindex 4c07274..cee64ef 100755\n--- a/support/download/check-hash\n+++ b/support/download/check-hash\n@@ -23,7 +23,7 @@ file=\"${2}\"\n base=\"${3}\"\n \n # Does the hash-file exist?\n-if [ ! -f \"${h_file}\" ]; then\n+if [ -z \"${h_file}\" -o ! -f \"${h_file}\" ]; then\n exit 0\n fi\n \ndiff --git a/support/download/dl-wrapper b/support/download/dl-wrapper\nindex 3b30840..514118c 100755\n--- a/support/download/dl-wrapper\n+++ b/support/download/dl-wrapper\n@@ -44,9 +44,6 @@ main() {\n if [ -z \"${output}\" ]; then\n error \"no output specified, use -o\\n\"\n fi\n- if [ -z \"${hfile}\" ]; then\n- error \"no hash-file specified, use -H\\n\"\n- fi\n \n # If the output file already exists, do not download it again\n if [ -e \"${output}\" ]; then\n", "prefixes": [ "1/7", "v3" ] }