From d7d3c6063ef3ca4debf70dbfbed58cca15644887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20So=C3=B3s?= Date: Fri, 5 Jul 2024 14:39:41 +0200 Subject: [PATCH] Do not use pana's License.path, use 'license' label instead. (#7846) --- app/lib/frontend/templates/views/pkg/info_box.dart | 3 +-- app/test/frontend/golden/pkg_activity_log_page.html | 4 ++-- app/test/frontend/golden/pkg_admin_page.html | 4 ++-- app/test/frontend/golden/pkg_changelog_page.html | 4 ++-- app/test/frontend/golden/pkg_example_page.html | 4 ++-- app/test/frontend/golden/pkg_install_page.html | 4 ++-- app/test/frontend/golden/pkg_score_page.html | 4 ++-- app/test/frontend/golden/pkg_show_page.html | 4 ++-- app/test/frontend/golden/pkg_show_page_discontinued.html | 4 ++-- app/test/frontend/golden/pkg_show_page_flutter_plugin.html | 4 ++-- app/test/frontend/golden/pkg_show_page_publisher.html | 4 ++-- app/test/frontend/golden/pkg_show_page_retracted.html | 4 ++-- .../golden/pkg_show_page_retracted_non_retracted_version.html | 4 ++-- app/test/frontend/golden/pkg_show_version_page.html | 4 ++-- app/test/frontend/golden/pkg_versions_page.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/changelog.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/example.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/install.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/license.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/score.html | 4 ++-- app/test/task/testdata/goldens/packages/oxygen/versions.html | 4 ++-- .../task/testdata/goldens/packages/oxygen/versions/1.0.0.html | 4 ++-- .../goldens/packages/oxygen/versions/1.0.0/changelog.html | 4 ++-- .../goldens/packages/oxygen/versions/1.0.0/example.html | 4 ++-- .../goldens/packages/oxygen/versions/1.0.0/install.html | 4 ++-- .../goldens/packages/oxygen/versions/1.0.0/license.html | 4 ++-- .../goldens/packages/oxygen/versions/1.0.0/score.html | 4 ++-- .../task/testdata/goldens/packages/oxygen/versions/2.0.0.html | 4 ++-- 29 files changed, 57 insertions(+), 58 deletions(-) diff --git a/app/lib/frontend/templates/views/pkg/info_box.dart b/app/lib/frontend/templates/views/pkg/info_box.dart index 295ffb06b..2d7420fab 100644 --- a/app/lib/frontend/templates/views/pkg/info_box.dart +++ b/app/lib/frontend/templates/views/pkg/info_box.dart @@ -166,7 +166,6 @@ d.Node? _licenseNode({ required String licenseUrl, required bool isPending, }) { - final paths = licenses.map((e) => e.path).toSet().toList(); final labels = isPending ? '(pending)' : licenses.map((e) => e.spdxIdentifier).toSet().join(', '); @@ -177,7 +176,7 @@ d.Node? _licenseNode({ ), d.text(labels), d.text(' ('), - d.a(href: licenseUrl, text: paths.join(', ')), + d.a(href: licenseUrl, text: 'license'), d.text(')'), ]); } diff --git a/app/test/frontend/golden/pkg_activity_log_page.html b/app/test/frontend/golden/pkg_activity_log_page.html index 15ff001bc..a9c35d59a 100644 --- a/app/test/frontend/golden/pkg_activity_log_page.html +++ b/app/test/frontend/golden/pkg_activity_log_page.html @@ -414,7 +414,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -490,7 +490,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_admin_page.html b/app/test/frontend/golden/pkg_admin_page.html index 168c1dce8..ede68ddb3 100644 --- a/app/test/frontend/golden/pkg_admin_page.html +++ b/app/test/frontend/golden/pkg_admin_page.html @@ -655,7 +655,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -731,7 +731,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_changelog_page.html b/app/test/frontend/golden/pkg_changelog_page.html index 3a264e8e4..72da65794 100644 --- a/app/test/frontend/golden/pkg_changelog_page.html +++ b/app/test/frontend/golden/pkg_changelog_page.html @@ -284,7 +284,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -361,7 +361,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_example_page.html b/app/test/frontend/golden/pkg_example_page.html index 98f607c93..5759955b2 100644 --- a/app/test/frontend/golden/pkg_example_page.html +++ b/app/test/frontend/golden/pkg_example_page.html @@ -281,7 +281,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -358,7 +358,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_install_page.html b/app/test/frontend/golden/pkg_install_page.html index fe42a3f71..d65000dbc 100644 --- a/app/test/frontend/golden/pkg_install_page.html +++ b/app/test/frontend/golden/pkg_install_page.html @@ -307,7 +307,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -384,7 +384,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_score_page.html b/app/test/frontend/golden/pkg_score_page.html index bee955993..489ce491b 100644 --- a/app/test/frontend/golden/pkg_score_page.html +++ b/app/test/frontend/golden/pkg_score_page.html @@ -369,7 +369,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -446,7 +446,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_page.html b/app/test/frontend/golden/pkg_show_page.html index fe712a4d2..fd4bf6f3d 100644 --- a/app/test/frontend/golden/pkg_show_page.html +++ b/app/test/frontend/golden/pkg_show_page.html @@ -284,7 +284,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -361,7 +361,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_page_discontinued.html b/app/test/frontend/golden/pkg_show_page_discontinued.html index abf132749..c5ab1cef4 100644 --- a/app/test/frontend/golden/pkg_show_page_discontinued.html +++ b/app/test/frontend/golden/pkg_show_page_discontinued.html @@ -277,7 +277,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -354,7 +354,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_page_flutter_plugin.html b/app/test/frontend/golden/pkg_show_page_flutter_plugin.html index d669ee777..3f5c08672 100644 --- a/app/test/frontend/golden/pkg_show_page_flutter_plugin.html +++ b/app/test/frontend/golden/pkg_show_page_flutter_plugin.html @@ -273,7 +273,7 @@

License

BSD-3-Clause ( - LICENSE + license )

Dependencies

@@ -354,7 +354,7 @@

License

BSD-3-Clause ( - LICENSE + license )

Dependencies

diff --git a/app/test/frontend/golden/pkg_show_page_publisher.html b/app/test/frontend/golden/pkg_show_page_publisher.html index a65d7f0d4..082e608dc 100644 --- a/app/test/frontend/golden/pkg_show_page_publisher.html +++ b/app/test/frontend/golden/pkg_show_page_publisher.html @@ -275,7 +275,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -355,7 +355,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_page_retracted.html b/app/test/frontend/golden/pkg_show_page_retracted.html index bcf508a45..17441f376 100644 --- a/app/test/frontend/golden/pkg_show_page_retracted.html +++ b/app/test/frontend/golden/pkg_show_page_retracted.html @@ -253,7 +253,7 @@

License

unknown ( - LICENSE + license )

More

@@ -323,7 +323,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_page_retracted_non_retracted_version.html b/app/test/frontend/golden/pkg_show_page_retracted_non_retracted_version.html index 0fa29e994..fff7fb3df 100644 --- a/app/test/frontend/golden/pkg_show_page_retracted_non_retracted_version.html +++ b/app/test/frontend/golden/pkg_show_page_retracted_non_retracted_version.html @@ -268,7 +268,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -345,7 +345,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_show_version_page.html b/app/test/frontend/golden/pkg_show_version_page.html index 40da167e8..72be5e414 100644 --- a/app/test/frontend/golden/pkg_show_version_page.html +++ b/app/test/frontend/golden/pkg_show_version_page.html @@ -278,7 +278,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -355,7 +355,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/frontend/golden/pkg_versions_page.html b/app/test/frontend/golden/pkg_versions_page.html index c665c11be..89e75366f 100644 --- a/app/test/frontend/golden/pkg_versions_page.html +++ b/app/test/frontend/golden/pkg_versions_page.html @@ -391,7 +391,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

@@ -468,7 +468,7 @@

License

BSD-3-Clause ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen.html b/app/test/task/testdata/goldens/packages/oxygen.html index 3396d51cb..f418d4a08 100644 --- a/app/test/task/testdata/goldens/packages/oxygen.html +++ b/app/test/task/testdata/goldens/packages/oxygen.html @@ -274,7 +274,7 @@

License

unknown ( - LICENSE + license )

More

@@ -355,7 +355,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/changelog.html b/app/test/task/testdata/goldens/packages/oxygen/changelog.html index d52025c65..ed9e5b4f1 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/changelog.html +++ b/app/test/task/testdata/goldens/packages/oxygen/changelog.html @@ -280,7 +280,7 @@

License

unknown ( - LICENSE + license )

More

@@ -361,7 +361,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/example.html b/app/test/task/testdata/goldens/packages/oxygen/example.html index dc2767f3a..22247843b 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/example.html +++ b/app/test/task/testdata/goldens/packages/oxygen/example.html @@ -277,7 +277,7 @@

License

unknown ( - LICENSE + license )

More

@@ -358,7 +358,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/install.html b/app/test/task/testdata/goldens/packages/oxygen/install.html index 4f245a904..b804a35dd 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/install.html +++ b/app/test/task/testdata/goldens/packages/oxygen/install.html @@ -303,7 +303,7 @@

License

unknown ( - LICENSE + license )

More

@@ -384,7 +384,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/license.html b/app/test/task/testdata/goldens/packages/oxygen/license.html index 4b998fac7..a821f7016 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/license.html +++ b/app/test/task/testdata/goldens/packages/oxygen/license.html @@ -276,7 +276,7 @@

License

unknown ( - LICENSE + license )

More

@@ -357,7 +357,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/score.html b/app/test/task/testdata/goldens/packages/oxygen/score.html index 0054e3828..c067bbf9e 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/score.html +++ b/app/test/task/testdata/goldens/packages/oxygen/score.html @@ -603,7 +603,7 @@

License

unknown ( - LICENSE + license )

More

@@ -684,7 +684,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions.html b/app/test/task/testdata/goldens/packages/oxygen/versions.html index 1918f31f3..ae3cc36dc 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions.html @@ -336,7 +336,7 @@

License

unknown ( - LICENSE + license )

More

@@ -417,7 +417,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0.html index 962fd9149..8d94f144e 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0.html @@ -278,7 +278,7 @@

License

unknown ( - LICENSE + license )

More

@@ -359,7 +359,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/changelog.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/changelog.html index c5a9a46d7..899ac71b6 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/changelog.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/changelog.html @@ -284,7 +284,7 @@

License

unknown ( - LICENSE + license )

More

@@ -365,7 +365,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/example.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/example.html index 3421e3149..65f96dbfe 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/example.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/example.html @@ -281,7 +281,7 @@

License

unknown ( - LICENSE + license )

More

@@ -362,7 +362,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/install.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/install.html index 943f7db42..98901c60d 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/install.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/install.html @@ -307,7 +307,7 @@

License

unknown ( - LICENSE + license )

More

@@ -388,7 +388,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/license.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/license.html index 10d1f57e0..1ec37d9e4 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/license.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/license.html @@ -280,7 +280,7 @@

License

unknown ( - LICENSE + license )

More

@@ -361,7 +361,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/score.html b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/score.html index 05a2e79e8..940a2c942 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/score.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/1.0.0/score.html @@ -607,7 +607,7 @@

License

unknown ( - LICENSE + license )

More

@@ -688,7 +688,7 @@

License

unknown ( - LICENSE + license )

More

diff --git a/app/test/task/testdata/goldens/packages/oxygen/versions/2.0.0.html b/app/test/task/testdata/goldens/packages/oxygen/versions/2.0.0.html index 3396d51cb..f418d4a08 100644 --- a/app/test/task/testdata/goldens/packages/oxygen/versions/2.0.0.html +++ b/app/test/task/testdata/goldens/packages/oxygen/versions/2.0.0.html @@ -274,7 +274,7 @@

License

unknown ( - LICENSE + license )

More

@@ -355,7 +355,7 @@

License

unknown ( - LICENSE + license )

More