From 9a0017ad5ae2143c71b949a8fbfe2c49623bbf62 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sat, 17 Sep 2022 01:32:18 +0300 Subject: [PATCH] Convert news sites from name to srcname (#944) --- repology/packagemaker/names.py | 8 ++++---- repos.d/news_sites/freshcode.yaml | 2 +- repos.d/news_sites/libregamewiki.yaml | 2 +- repos.d/wikidata.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/repology/packagemaker/names.py b/repology/packagemaker/names.py index 1eca16342..cf5558828 100644 --- a/repology/packagemaker/names.py +++ b/repology/packagemaker/names.py @@ -162,9 +162,9 @@ class NameType: SPACK_NAME: ClassVar[int] = GENERIC_GEN_NAME - DISTROWATCH_NAME: ClassVar[int] = GENERIC_GEN_NAME + DISTROWATCH_NAME: ClassVar[int] = GENERIC_SRC_NAME - FRESHCODE_NAME: ClassVar[int] = GENERIC_GEN_NAME + FRESHCODE_NAME: ClassVar[int] = GENERIC_SRC_NAME RAVENPORTS_NAMEBASE: ClassVar[int] = GENERIC_GEN_NAME @@ -305,7 +305,7 @@ class MappedNames: ), # Wikidata _NameMapping( - name=NameType.WIKIDATA_ENTITY, + srcname=NameType.WIKIDATA_ENTITY, visiblename=NameType.WIKIDATA_LABEL, projectname_seed=NameType.WIKIDATA_REPOLOGY_PROJECT_NAME, trackname=NameType.WIKIDATA_ENTITY, @@ -368,7 +368,7 @@ class MappedNames: ), # Wiki _NameMapping( - name=NameType.WIKI_PAGE, + srcname=NameType.WIKI_PAGE, visiblename=NameType.WIKI_TITLE, projectname_seed=NameType.WIKI_TITLE, trackname=NameType.WIKI_PAGE, diff --git a/repos.d/news_sites/freshcode.yaml b/repos.d/news_sites/freshcode.yaml index 3d84fa42f..2fd7a86e6 100644 --- a/repos.d/news_sites/freshcode.yaml +++ b/repos.d/news_sites/freshcode.yaml @@ -21,5 +21,5 @@ url: http://freshcode.club/ packagelinks: - type: PACKAGE_HOMEPAGE - url: 'http://freshcode.club/projects/{name}' + url: 'http://freshcode.club/projects/{srcname}' groups: [ all, production ] diff --git a/repos.d/news_sites/libregamewiki.yaml b/repos.d/news_sites/libregamewiki.yaml index 6ac283e62..1a712bbfd 100644 --- a/repos.d/news_sites/libregamewiki.yaml +++ b/repos.d/news_sites/libregamewiki.yaml @@ -19,5 +19,5 @@ url: https://libregamewiki.org/ packagelinks: - type: PACKAGE_HOMEPAGE - url: 'https://libregamewiki.org/{name}' + url: 'https://libregamewiki.org/{srcname}' groups: [ all, production ] diff --git a/repos.d/wikidata.yaml b/repos.d/wikidata.yaml index ff1c71765..4283312f1 100644 --- a/repos.d/wikidata.yaml +++ b/repos.d/wikidata.yaml @@ -219,7 +219,7 @@ url: "https://wikidata.org/" packagelinks: - type: PACKAGE_HOMEPAGE - url: "https://www.wikidata.org/wiki/{name}" + url: "https://www.wikidata.org/wiki/{srcname}" groups: [ all, production ] # Some additional useful requests