Skip to content

Commit

Permalink
Generalize name handling for cygwin (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Nov 13, 2019
1 parent fe0367b commit ed8084a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions repology/packagemaker/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ class NameType:
DEBIAN_PACKAGE: ClassVar[int] = 50
OPENWRT_SOURCEDIR: ClassVar[int] = 51

CYGWIN_PACKAGE_NAME: ClassVar[int] = 60
CYGWIN_SUBPACKAGE_NAME: ClassVar[int] = 61

WIKI_TITLE: ClassVar[int] = 70
WIKI_PAGE: ClassVar[int] = 71

Expand Down Expand Up @@ -104,6 +101,9 @@ class NameType:
ARCH_NAME: ClassVar[int] = GENERIC_NOBN_NAME
ARCH_BASENAME: ClassVar[int] = GENERIC_NOBN_BASENAME

CYGWIN_PACKAGE_NAME: ClassVar[int] = GENERIC_NOBN_BASENAME
CYGWIN_SUBPACKAGE_NAME: ClassVar[int] = GENERIC_NOBN_NAME


@dataclass
class _NameMapping:
Expand Down Expand Up @@ -199,13 +199,6 @@ class MappedNames:
visiblename=NameType.DEBIAN_PACKAGE,
projectname_seed=NameType.OPENWRT_SOURCEDIR,
),
# Cygwin
_NameMapping(
name=NameType.CYGWIN_SUBPACKAGE_NAME,
basename=NameType.CYGWIN_PACKAGE_NAME,
visiblename=NameType.CYGWIN_SUBPACKAGE_NAME,
projectname_seed=NameType.CYGWIN_PACKAGE_NAME,
),
# Wiki
_NameMapping(
name=NameType.WIKI_PAGE,
Expand Down

0 comments on commit ed8084a

Please sign in to comment.