Skip to content

Commit

Permalink
Convert news sites from name to srcname (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 19, 2022
1 parent cb00645 commit 9a0017a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions repology/packagemaker/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion repos.d/news_sites/freshcode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
2 changes: 1 addition & 1 deletion repos.d/news_sites/libregamewiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
2 changes: 1 addition & 1 deletion repos.d/wikidata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a0017a

Please sign in to comment.