From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 946A0C04A6B for ; Sun, 12 May 2019 07:40:56 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A0562133D for ; Sun, 12 May 2019 07:40:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A0562133D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hPj68-0008TJ-8O; Sun, 12 May 2019 03:40:40 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hPj66-0008TC-11 for kernelnewbies@kernelnewbies.org; Sun, 12 May 2019 03:40:38 -0400 Received: from mr6.cc.vt.edu (mr6.cc.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x4C7eaKX022299 for ; Sun, 12 May 2019 03:40:36 -0400 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x4C7eVA9016263 for ; Sun, 12 May 2019 03:40:36 -0400 Received: by mail-qk1-f198.google.com with SMTP id v198so9954262qka.5 for ; Sun, 12 May 2019 00:40:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version:date :message-id; bh=4niML5CBEC30siYgDwkdqvWzedR5M8WeQePCBwOwTk0=; b=Kj/aVQC8SfXxnWO9uZTMgEri26N3hV0J+Q+7RY1hCUgOyTwQ/gxKoeJROQuuhM7rfO EywmUasVKBi713Jd3BqB9U7LZzIvlapTaDcMLq6I0ihTnnpsR+CQgAUQQVyZ3Vf7LcrE 58wrBn1w++ghGGW9b81VSq6ToJERRDWlt47cLt2vThN99GcXQ9lX0MUXlomj9DwyaIeR 3M/45ZxgeRCR4ofCVNIdn1k3zCgN2/4pZjKup6KBUhAUe/oaYOYEMXN1l/8BOEgGnX21 kubrUgM9jBNllGNbItyaDQ/6O4FMRdeFLtG7Q5IfVAC+Ymu1eOccFf0cmxyHPmWbjB6h EAfw== X-Gm-Message-State: APjAAAW+2fmxiqNEH5tnBaOswqlKC9W8cNxVjv104aVGU6fPlp/AoggU FILMrgzZFeT2vxXpX1JNsl7PquyW1hZd3ujly6cyklE0kqi1gwX8rGkpvqtltDujFY8hfldfkOS OwJZnpyEA2aVWyphexz1e4BO/J9/W1jiQ6kswWoM= X-Received: by 2002:ac8:298d:: with SMTP id 13mr17969929qts.174.1557646831373; Sun, 12 May 2019 00:40:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAe13v194yDiRZP16Zt0YhlISnTOc1dpB98yMzdZWCHtKpcG/mjwaobALtaHZHMtv44Qfdxw== X-Received: by 2002:ac8:298d:: with SMTP id 13mr17969915qts.174.1557646831127; Sun, 12 May 2019 00:40:31 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::bf6]) by smtp.gmail.com with ESMTPSA id n36sm7215149qtk.9.2019.05.12.00.40.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 May 2019 00:40:29 -0700 (PDT) From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Google-Original-From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Andrew Morton , Deepak Mishra , Christoph Hellwig , Thomas Gleixner , Jeremy Cline Subject: [PATCH] scripts/spdxcheck.py - fix list of directories to check Mime-Version: 1.0 Date: Sun, 12 May 2019 03:40:28 -0400 Message-ID: <2008.1557646828@turing-police> Cc: linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org After this commit: commit 62be257e986dab439537b3e1c19ef746a13e1860 Author: Christoph Hellwig Date: Tue Apr 30 06:51:30 2019 -0400 LICENSES: Rename other to deprecated checkpatch throws an error: [/usr/src/linux-next]2 scripts/checkpatch.pl -f drivers/staging/rtl8712/rtl871x_rf.h FAIL: "Blob or Tree named 'other' not found" Traceback (most recent call last): File "scripts/spdxcheck.py", line 240, in spdx = read_spdxdata(repo) File "scripts/spdxcheck.py", line 41, in read_spdxdata for el in lictree[d].traverse(): File "/usr/lib/python2.7/site-packages/git/objects/tree.py", line 298, in __getitem__ return self.join(item) File "/usr/lib/python2.7/site-packages/git/objects/tree.py", line 244, in join raise KeyError(msg % file) KeyError: "Blob or Tree named 'other' not found" Fix directory search list. Pick up the new LICENSES/dual while we're there... Reported-by: Deepak Mishra Signed-off-by: Valdis Kletnieks diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py index 4fe392e507fb..7abd5f5cb14d 100755 --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py @@ -32,7 +32,7 @@ import os def read_spdxdata(repo): # The subdirectories of LICENSES in the kernel source - license_dirs = [ "preferred", "other", "exceptions" ] + license_dirs = [ "preferred", "dual", "deprecated", "exceptions" ] lictree = repo.head.commit.tree['LICENSES'] spdx = SPDXdata() _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies