summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2024-03-07 14:04:17 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-15 14:18:33 +0000
commit8f7b1bdb5f2ff1c02d184375379da58022553c34 (patch)
tree0f554b49216181db180b00b72679cb0503a275f9
parentd844d0b9d4bdb01752bbc893fe2bb6f6b95795c3 (diff)
Doc: Avoid 404 links to https://spdx.org/licenses/
SPDX ID's starting with "LicenseRef-" are local. Pick-to: 6.6 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>
-rw-r--r--src/qtattributionsscanner/qdocgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qtattributionsscanner/qdocgenerator.cpp b/src/qtattributionsscanner/qdocgenerator.cpp
index f7e1d29ff..b21a06938 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)) {