From aacd6421e6eeb0b1e752d454f1740c900c7c5b52 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Fri, 3 Sep 2021 00:54:40 +0800 Subject: [PATCH] Fix #683 - enable SPDX linter checks (#1578) * Fix #683 - enable SPDX linter checks * Add license to the last remaining file --- .github/workflows/linter.yml | 2 -- subprojects/packagefiles/libzip-1.7.3/create_zip_err_str.py | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9f78ec3080..2c2e5e42d0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -124,10 +124,8 @@ jobs: licenses: runs-on: ubuntu-20.04 - continue-on-error: true steps: - name: Checkout repository uses: actions/checkout@v2 - name: REUSE Compliance Check uses: fsfe/reuse-action@v1.1 - continue-on-error: true diff --git a/subprojects/packagefiles/libzip-1.7.3/create_zip_err_str.py b/subprojects/packagefiles/libzip-1.7.3/create_zip_err_str.py index 5e490d0176..a5b13b8743 100755 --- a/subprojects/packagefiles/libzip-1.7.3/create_zip_err_str.py +++ b/subprojects/packagefiles/libzip-1.7.3/create_zip_err_str.py @@ -1,4 +1,8 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2021 ret2libc +# SPDX-License-Identifier: LGPL-3.0-only + import sys TEMPLATE = '''/* @@ -39,4 +43,4 @@ defines = [l for l in open(zip_h, 'r').read().split('\n') if l.startswith('#defi zip_err_strs = '\n'.join(['"' + def2errstr(x) + '",' for x in defines]) zip_err_types = '\n'.join([def2errtype(x) + ',' for x in defines]) -open(zip_err_str_c, 'w').write(TEMPLATE.format(zip_err_strs=zip_err_strs, zip_err_types=zip_err_types)) \ No newline at end of file +open(zip_err_str_c, 'w').write(TEMPLATE.format(zip_err_strs=zip_err_strs, zip_err_types=zip_err_types))