Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh & cleanup freedesktop.org web URLs #647

Merged
merged 4 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions compose/asc-hint-tags.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ AscHintTagStatic asc_hint_tag_list[] = {
{ "ancient-metadata",
AS_ISSUE_SEVERITY_WARNING,
"The AppStream metadata should be updated to follow a more recent version of the specification.<br/>"
"Please consult <a href=\"http://freedesktop.org/software/appstream/docs/chap-Quickstart.html\">the XML quickstart guide</a> for "
"Please consult <a href=\"https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html\">MetaInfo quickstart guide</a> for "
"more information."
},

Expand All @@ -83,7 +83,7 @@ AscHintTagStatic asc_hint_tag_list[] = {
AS_ISSUE_SEVERITY_ERROR,
"Component does not contain a short summary. Ensure that the components MetaInfo file has a <code>summary</code> tag, or that its .desktop file "
"has a <code>Comment=</code> field set.<br/>"
"More information can be found in the <a href=\"http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html\">Desktop Entry specification</a> "
"More information can be found in the <a href=\"https://specifications.freedesktop.org/desktop-entry-spec/latest/localized-keys.html\">Desktop Entry specification</a> "
"and the <a href=\"https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-dapp-summary\">MetaInfo specification</a>."
},

Expand Down Expand Up @@ -128,14 +128,14 @@ AscHintTagStatic asc_hint_tag_list[] = {
AS_ISSUE_SEVERITY_WARNING,
"The desktop-entry file `{{location}}` has the 'Hidden' property set. This is wrong for vendor-installed .desktop files, and "
"nullifies all effects this .desktop file has (including MIME associations), which most certainly is not intentional. "
"See <a href=\"https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html\">the specification</a> for details."
"See <a href=\"https://specifications.freedesktop.org/desktop-entry-spec/latest/recognized-keys.html\">the specification</a> for details."
},

{ "desktop-entry-empty-onlyshowin",
AS_ISSUE_SEVERITY_WARNING,
"The desktop-entry file `{{location}}` has the 'OnlyShowIn' property set with an empty value. This might not be intended, as this will hide "
"the application from all desktops. If you do want to hide the application from all desktops, using 'NoDisplay=true' is more explicit. "
"See <a href=\"https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html\">the specification</a> for details."
"See <a href=\"https://specifications.freedesktop.org/desktop-entry-spec/latest/recognized-keys.html\">the specification</a> for details."
},

{ "missing-launchable-desktop-file",
Expand Down Expand Up @@ -289,14 +289,14 @@ AscHintTagStatic asc_hint_tag_list[] = {

{ "no-metainfo",
AS_ISSUE_SEVERITY_WARNING,
"This software component is missing a <a href=\"https://freedesktop.org/software/appstream/docs/chap-Metadata.html#sect-Metadata-GenericComponent\">MetaInfo file</a> "
"This software component is missing a <a href=\"https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#sect-Metadata-GenericComponent\">MetaInfo file</a> "
"as metadata source.<br/>"
"To synthesize suitable metadata anyway, we took some data from its desktop-entry file.<br/>"
"This has many disadvantages, like low-quality and incomplete metadata. Therefore clients may ignore this component entirely due to poor metadata.<br/>"
"Additionally, a lot of software from desktop-entry files should either not be installable and searchable via the software catalog "
"(like desktop-specific settings applications) or be tagged accordingly via MetaInfo files.<br/>"
"Please consider to either hide this .desktop file from AppStream by adding a <code>X-AppStream-Ignore=true</code> field to it, or to write a MetaInfo file for this component.<br/>"
"You can consult the <a href=\"http://freedesktop.org/software/appstream/docs/chap-Quickstart.html\">MetaInfo quickstart guides</a> for more information "
"You can consult the <a href=\"https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html\">MetaInfo quickstart guides</a> for more information "
"on how to write a MetaInfo file, or file a bug with the upstream author of this software component."
},

Expand Down
2 changes: 1 addition & 1 deletion qt/pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace AppStream
/**
* Access the AppStream metadata pool.
*
* See http://www.freedesktop.org/wiki/Distributions/AppStream/ for details
* See https://www.freedesktop.org/wiki/Distributions/AppStream/ for details
*/
class PoolPrivate;
class APPSTREAMQT_EXPORT Pool : public QObject
Expand Down
2 changes: 1 addition & 1 deletion src/as-category.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @include: appstream.h
*
* This object represents a XDG category, as defined at:
* https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry
* https://specifications.freedesktop.org/menu-spec/latest/category-registry.html
*
* The #AsCategory object does not support all aspects of a menu. Its main purpose
* is to be used in software-centers to group visual components (gui/web applications).
Expand Down
2 changes: 1 addition & 1 deletion src/as-content-rating.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ as_content_rating_system_format_age (AsContentRatingSystem system, guint age)
return g_strdup ("6");
return g_strdup ("0");
}
/* Reference: http://www.esra.org.ir/ */
/* Reference: https://esra.ircg.ir/ */
if (system == AS_CONTENT_RATING_SYSTEM_ESRA) {
if (age >= 18)
return g_strdup ("+18");
Expand Down
2 changes: 1 addition & 1 deletion src/as-system-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ as_system_info_get_display_length (AsSystemInfo *sysinfo, AsDisplaySideKind side
* Set the current display length for the given side kind.
* The size needs to be in device-independent pixels, see the
* AppStream documentation for more information:
* https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length
* https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length
*/
void
as_system_info_set_display_length (AsSystemInfo *sysinfo, AsDisplaySideKind side, gulong value_dip)
Expand Down
2 changes: 1 addition & 1 deletion src/as-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ as_utils_ensure_resources (void)
* @category_name: a XDG category name, e.g. "ProjectManagement"
*
* Searches the known list of registered XDG category names.
* See https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry
* See https://specifications.freedesktop.org/menu-spec/latest/category-registry.html
* for a reference.
*
* Returns: %TRUE if the category name is valid
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/org.example.pomidaq.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@

<content_rating type="oars-1.1"/>

<releases type="external" url="https://raw.githubusercontent.com/ximion/appstream/master/tests/samples/releases/org.example.pomidaq.releases.xml" />
<releases type="external" url="https://raw.githubusercontent.com/ximion/appstream/main/tests/samples/releases/org.example.pomidaq.releases.xml" />
</component>
2 changes: 1 addition & 1 deletion tests/test-xmldata.c
Original file line number Diff line number Diff line change
Expand Up @@ -2384,7 +2384,7 @@ test_xml_rw_external_releases (void)
g_assert_cmpint (as_release_list_len (releases), ==, 4);
g_assert_cmpstr (as_release_list_get_url (releases),
==,
"https://raw.githubusercontent.com/ximion/appstream/master/tests/samples/"
"https://raw.githubusercontent.com/ximion/appstream/main/tests/samples/"
"releases/org.example.pomidaq.releases.xml");
g_assert_cmpint (as_release_list_get_kind (releases), ==, AS_RELEASE_LIST_KIND_EXTERNAL);
}
Expand Down
Loading