diff options
author | Kai Köhne <kai.koehne@qt.io> | 2024-03-07 14:04:17 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-15 21:01:37 +0000 |
commit | cd43fa4ba58b3848d883f4797dfaec1d31ee2977 (patch) | |
tree | 78c56d4b5af08befea9045c24d2d7a180afddac8 | |
parent | c44f9dcb18f9e597f13598494f7fa9a3db8ee960 (diff) |
Doc: Avoid 404 links to https://spdx.org/licenses/
SPDX ID's starting with "LicenseRef-" are local.
Pick-to: 6.5
Change-Id: I383448e22e4f5eb751e089ae4ec618985864db26
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 2070c94858cd31b1820442461d52b30eae856cf9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 8f7b1bdb5f2ff1c02d184375379da58022553c34)
-rw-r--r-- | src/qtattributionsscanner/qdocgenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qtattributionsscanner/qdocgenerator.cpp b/src/qtattributionsscanner/qdocgenerator.cpp index f8e6aee83..0e57c1106 100644 --- a/src/qtattributionsscanner/qdocgenerator.cpp +++ b/src/qtattributionsscanner/qdocgenerator.cpp @@ -126,7 +126,8 @@ static void generate(QTextStream &out, const Package &package, const QDir &baseD sourceCode(out, copyright); } - if (isSpdxLicenseId(package.licenseId) && package.licenseId != "NONE"_L1) { + if (isSpdxLicenseId(package.licenseId) && !package.licenseId.startsWith("LicenseRef-"_L1) + && package.licenseId != "NONE"_L1) { out << "\\l{https://spdx.org/licenses/" << package.licenseId << ".html}" << "{" << package.license << "}.\n\n"; } else if (package.licenseId.startsWith("urn:dje:license:"_L1)) { |