فهرست منبع

patchtest: update SPDX identifiers

Replace full license headers with SPDX identifiers and adjust all
patchtest-related code to use GPL-2.0-only.

(From OE-Core rev: 9bea6b39074296bb8d8719a3300636e316f19d1b)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Trevor Gamblin 1 سال پیش
والد
کامیت
b5a87b5f98
34فایلهای تغییر یافته به همراه35 افزوده شده و 161 حذف شده
  1. 1 14
      meta/lib/patchtest/data.py
  2. 1 12
      meta/lib/patchtest/patch.py
  3. 1 11
      meta/lib/patchtest/repo.py
  4. 1 1
      meta/lib/patchtest/selftest/selftest
  5. 1 1
      meta/lib/patchtest/tests/base.py
  6. 1 1
      meta/lib/patchtest/tests/pyparsing/common.py
  7. 1 1
      meta/lib/patchtest/tests/pyparsing/parse_cve_tags.py
  8. 1 1
      meta/lib/patchtest/tests/pyparsing/parse_shortlog.py
  9. 1 1
      meta/lib/patchtest/tests/pyparsing/parse_signed_off_by.py
  10. 1 1
      meta/lib/patchtest/tests/pyparsing/parse_upstream_status.py
  11. 1 1
      meta/lib/patchtest/tests/test_mbox_author.py
  12. 1 1
      meta/lib/patchtest/tests/test_mbox_bugzilla.py
  13. 1 13
      meta/lib/patchtest/tests/test_mbox_cve.py
  14. 1 1
      meta/lib/patchtest/tests/test_mbox_description.py
  15. 1 1
      meta/lib/patchtest/tests/test_mbox_format.py
  16. 1 1
      meta/lib/patchtest/tests/test_mbox_mailinglist.py
  17. 1 1
      meta/lib/patchtest/tests/test_mbox_merge.py
  18. 1 1
      meta/lib/patchtest/tests/test_mbox_shortlog.py
  19. 1 1
      meta/lib/patchtest/tests/test_mbox_signed_off_by.py
  20. 1 1
      meta/lib/patchtest/tests/test_metadata_lic_files_chksum.py
  21. 1 1
      meta/lib/patchtest/tests/test_metadata_license.py
  22. 1 1
      meta/lib/patchtest/tests/test_metadata_max_length.py
  23. 1 1
      meta/lib/patchtest/tests/test_metadata_src_uri.py
  24. 1 1
      meta/lib/patchtest/tests/test_metadata_summary.py
  25. 1 13
      meta/lib/patchtest/tests/test_patch_cve.py
  26. 1 1
      meta/lib/patchtest/tests/test_patch_signed_off_by.py
  27. 1 1
      meta/lib/patchtest/tests/test_patch_upstream_status.py
  28. 1 1
      meta/lib/patchtest/tests/test_python_pylint.py
  29. 1 11
      meta/lib/patchtest/utils.py
  30. 1 14
      scripts/patchtest
  31. 1 11
      scripts/patchtest-get-branch
  32. 1 11
      scripts/patchtest-get-series
  33. 2 15
      scripts/patchtest-send-results
  34. 1 13
      scripts/patchtest-setup-sharedir

+ 1 - 14
meta/lib/patchtest/data.py

@@ -6,20 +6,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Leo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # NOTE: Strictly speaking, unit test should be isolated from outside,
 #       but patchtest test suites uses command line input data and

+ 1 - 12
meta/lib/patchtest/patch.py

@@ -5,18 +5,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# SPDX-License-Identifier: GPL-2.0-only
 #
 
 import logging

+ 1 - 11
meta/lib/patchtest/repo.py

@@ -5,18 +5,8 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 import os
 import utils

+ 1 - 1
meta/lib/patchtest/selftest/selftest

@@ -4,7 +4,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import os
 import subprocess

+ 1 - 1
meta/lib/patchtest/tests/base.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import unittest
 import logging

+ 1 - 1
meta/lib/patchtest/tests/pyparsing/common.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import pyparsing
 

+ 1 - 1
meta/lib/patchtest/tests/pyparsing/parse_cve_tags.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 
 import pyparsing

+ 1 - 1
meta/lib/patchtest/tests/pyparsing/parse_shortlog.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 # NOTE:This is an oversimplified syntax of the mbox's summary
 

+ 1 - 1
meta/lib/patchtest/tests/pyparsing/parse_signed_off_by.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 
 import pyparsing

+ 1 - 1
meta/lib/patchtest/tests/pyparsing/parse_upstream_status.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 
 import common

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_author.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import pyparsing

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_bugzilla.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import pyparsing
 import base

+ 1 - 13
meta/lib/patchtest/tests/test_mbox_cve.py

@@ -2,20 +2,8 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-# SPDX-License-Identifier: GPL-2.0-or-later
 
 import base
 import os

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_description.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_format.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_mailinglist.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2017 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import subprocess
 import collections

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_merge.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import subprocess
 import base

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_shortlog.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import parse_shortlog

+ 1 - 1
meta/lib/patchtest/tests/test_mbox_signed_off_by.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import parse_signed_off_by

+ 1 - 1
meta/lib/patchtest/tests/test_metadata_lic_files_chksum.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import pyparsing

+ 1 - 1
meta/lib/patchtest/tests/test_metadata_license.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import os

+ 1 - 1
meta/lib/patchtest/tests/test_metadata_max_length.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import pyparsing

+ 1 - 1
meta/lib/patchtest/tests/test_metadata_src_uri.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import subprocess
 import base

+ 1 - 1
meta/lib/patchtest/tests/test_metadata_summary.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 from data import PatchTestInput

+ 1 - 13
meta/lib/patchtest/tests/test_patch_cve.py

@@ -2,20 +2,8 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-# SPDX-License-Identifier: GPL-2.0-or-later
 
 import base
 import os

+ 1 - 1
meta/lib/patchtest/tests/test_patch_signed_off_by.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import parse_signed_off_by

+ 1 - 1
meta/lib/patchtest/tests/test_patch_upstream_status.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 import parse_upstream_status

+ 1 - 1
meta/lib/patchtest/tests/test_python_pylint.py

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: GPL-2.0-only
 
 import base
 from data import PatchTestInput

+ 1 - 11
meta/lib/patchtest/utils.py

@@ -5,18 +5,8 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 import os
 import subprocess

+ 1 - 14
scripts/patchtest

@@ -6,20 +6,7 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Leo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
+# SPDX-License-Identifier: GPL-2.0-only
 #
 
 import sys

+ 1 - 11
scripts/patchtest-get-branch

@@ -8,18 +8,8 @@
 #
 # Copyright (C) 2016 Intel Corporation
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 import mailbox
 import argparse

+ 1 - 11
scripts/patchtest-get-series

@@ -4,18 +4,8 @@
 #
 # Copyright (C) 2023 BayLibre Inc.
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # the interval into the past which we want to check for new series, in minutes
 INTERVAL_MINUTES=30

+ 2 - 15
scripts/patchtest-send-results

@@ -9,21 +9,8 @@
 #
 # Copyright (C) 2023 BayLibre Inc.
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Trevor Gamblin <tgamblin@baylibre.com>
-#
+# SPDX-License-Identifier: GPL-2.0-only
+# 
 
 import argparse
 import boto3

+ 1 - 13
scripts/patchtest-setup-sharedir

@@ -6,20 +6,8 @@
 #
 # Copyright (C) 2023 BayLibre Inc.
 #
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
+# SPDX-License-Identifier: GPL-2.0-only
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Trevor Gamblin <tgamblin@baylibre.com>
 
 # poky repository
 POKY_REPO="https://git.yoctoproject.org/poky"