Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75025/?format=api
http://patchwork.dpdk.org/api/patches/75025/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/1596069418-28850-1-git-send-email-lihongx.ma@intel.com/", "project": { "id": 3, "url": "http://patchwork.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<1596069418-28850-1-git-send-email-lihongx.ma@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/1596069418-28850-1-git-send-email-lihongx.ma@intel.com", "date": "2020-07-30T00:36:58", "name": "[V1] framework/main: fix warning of syntax", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "9f0a9cf5a98401b8a6ecb7a743e93fb9a1e5447f", "submitter": { "id": 1641, "url": "http://patchwork.dpdk.org/api/people/1641/?format=api", "name": "Ma, LihongX", "email": "lihongx.ma@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/1596069418-28850-1-git-send-email-lihongx.ma@intel.com/mbox/", "series": [ { "id": 11411, "url": "http://patchwork.dpdk.org/api/series/11411/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=11411", "date": "2020-07-30T00:36:58", "name": "[V1] framework/main: fix warning of syntax", "version": 1, "mbox": "http://patchwork.dpdk.org/series/11411/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/75025/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/75025/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A7F23A052B;\n\tThu, 30 Jul 2020 10:08:53 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 765F51023;\n\tThu, 30 Jul 2020 10:08:53 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id E2B443B5\n for <dts@dpdk.org>; Thu, 30 Jul 2020 10:08:51 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Jul 2020 01:08:50 -0700", "from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174])\n by fmsmga007.fm.intel.com with ESMTP; 30 Jul 2020 01:08:49 -0700" ], "IronPort-SDR": [ "\n Wnu5BLgwUreXzBIbiI5zb6UMaMpOm5omHA7U1KbBdGhsWfIamW56vFoJGxsu67YGq2VHfhN3MM\n kGbVBsgJ8H1A==", "\n yVZrpLcHGV5uECR2PveYxx9/qX4L+RzIhrZuq0mp+d65p3afntmHoBGdE+AlPPyKGxjJH6lL/o\n BHLx/9DD4SBw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9697\"; a=\"169677429\"", "E=Sophos;i=\"5.75,413,1589266800\"; d=\"scan'208\";a=\"169677429\"", "E=Sophos;i=\"5.75,413,1589266800\"; d=\"scan'208\";a=\"272861126\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "LihongX Ma <lihongx.ma@intel.com>", "To": "dts@dpdk.org", "Cc": "\"LihongX, Ma\" <lihongx.ma@intel.com>", "Date": "Thu, 30 Jul 2020 08:36:58 +0800", "Message-Id": "<1596069418-28850-1-git-send-email-lihongx.ma@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dts] [PATCH V1] framework/main: fix warning of syntax", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "From: \"LihongX, Ma\" <lihongx.ma@intel.com>\n\nwhen use python3.8, it will warning of cmd 'ret is not 0', fix\nthis warning.\n\nSigned-off-by: LihongX Ma <lihongx.ma@intel.com>\n---\n framework/main.py | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/framework/main.py b/framework/main.py\nindex b5e5952..f6e3ae9 100755\n--- a/framework/main.py\n+++ b/framework/main.py\n@@ -59,13 +59,13 @@ def git_build_package(gitLabel, pkgName, depot=\"dep\"):\n else:\n print(\"git clone %s %s/%s\" % (gitURL, depot, gitPrefix))\n ret = os.system(\"git clone %s %s/%s\" % (gitURL, depot, gitPrefix))\n- if ret is not 0:\n+ if ret != 0:\n raise EnvironmentError\n \n print(\"git archive --format=tar.gz --prefix=%s %s -o %s\" % (gitPrefix, gitLabel, pkgName))\n ret = os.system(\"cd %s/%s && git archive --format=tar.gz --prefix=%s/ %s -o ../%s\"\n % (depot, gitPrefix, gitPrefix, gitLabel, pkgName))\n- if ret is not 0:\n+ if ret != 0:\n raise EnvironmentError\n \n \n", "prefixes": [ "V1" ] }{ "id": 75025, "url": "