From cd43fa4ba58b3848d883f4797dfaec1d31ee2977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Thu, 7 Mar 2024 14:04:17 +0100 Subject: 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 (cherry picked from commit 2070c94858cd31b1820442461d52b30eae856cf9) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 8f7b1bdb5f2ff1c02d184375379da58022553c34) --- src/qtattributionsscanner/qdocgenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3