Skip to content

Commit

Permalink
Use title as visiblename for npackd (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Nov 12, 2019
1 parent afed6e6 commit c51edd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions repology/packagemaker/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NameType:
BSD_PKGNAME: ClassVar[int] = 30
BSD_ORIGIN: ClassVar[int] = 31

NPACKD_TITLE: ClassVar[int] = IGNORED
NPACKD_TITLE: ClassVar[int] = 40
NPACKD_FULLNAME: ClassVar[int] = 41
NPACKD_LASTNAME: ClassVar[int] = 42

Expand Down Expand Up @@ -119,10 +119,9 @@ class MappedNames:
),
# Npackd
_NameMapping(
# XXX: add support for NPACKD_TITLE as visible name
name=NameType.NPACKD_FULLNAME,
basename=NameType.NPACKD_LASTNAME,
visiblename=NameType.NPACKD_FULLNAME,
visiblename=NameType.NPACKD_TITLE,
projectname_seed=NameType.NPACKD_LASTNAME,
trackname=NameType.NPACKD_FULLNAME,
),
Expand Down

0 comments on commit c51edd1

Please sign in to comment.