Skip to content

Commit

Permalink
Merge branch 'repology:master' into wip/apertis
Browse files Browse the repository at this point in the history
  • Loading branch information
daissi authored Oct 4, 2023
2 parents 64fe6ed + 99381f7 commit 8700a0c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions repology/linkformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@

_FILTERS: dict[str, Callable[[str], str]] = {
'lowercase': lambda x: x.lower(),
'firstletter': lambda x: x.lower()[0],
'libfirstletter': lambda x: x.lower()[:4] if x.lower().startswith('lib') else x.lower()[0],
'stripdmo': lambda x: x[:-4] if x.endswith('-dmo') else x,
'first_letter': lambda x: x.lower()[0],
'lib_or_first_letter': lambda x: x.lower()[:4] if x.lower().startswith('lib') else x.lower()[0],
'py_or_first_letter': lambda x: x.lower()[:2] if x.lower().startswith('py') else x.lower()[0],
'strip_dmo': lambda x: x[:-4] if x.endswith('-dmo') else x,
'basename': lambda x: x.rsplit('/', 1)[-1],
'dirname': lambda x: x.rsplit('/', 1)[0],
'dec': lambda x: str(_safe_int(x) - 1),
Expand Down
4 changes: 2 additions & 2 deletions repos.d/deb/mx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
subrepo: {{sub}}
packagelinks:
- type: PACKAGE_SOURCES
url: 'http://mxrepo.com/mx/repo/pool/{{sub}}/{srcname|libfirstletter}/{srcname}/'
url: 'http://mxrepo.com/mx/repo/pool/{{sub}}/{srcname|lib_or_first_letter}/{srcname}/'
{% endfor %}
repolinks:
- desc: MX Linux
Expand Down Expand Up @@ -51,7 +51,7 @@
class: DebianSourcesParser
packagelinks:
- type: PACKAGE_SOURCES
url: 'http://mxrepo.com/mx/testrepo/pool/test/{srcname|libfirstletter}/{srcname}/'
url: 'http://mxrepo.com/mx/testrepo/pool/test/{srcname|lib_or_first_letter}/{srcname}/'
repolinks:
- desc: MX Linux
url: https://mxlinux.org/
Expand Down
2 changes: 1 addition & 1 deletion repos.d/deb/pardus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
url: https://www.pardus.org.tr/
packagelinks:
- type: PACKAGE_SOURCES
url: 'http://depo.pardus.org.tr/pardus/pool/{subrepo}/{srcname|libfirstletter}/{srcname}/'
url: 'http://depo.pardus.org.tr/pardus/pool/{subrepo}/{srcname|lib_or_first_letter}/{srcname}/'
groups: [ all, production, pardus ]
{% endmacro %}

Expand Down
8 changes: 4 additions & 4 deletions repos.d/solus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
parser:
class: SolusIndexParser
repolinks:
- desc: Solus home
- desc: Solus Home
url: https://getsol.us/
packagelinks:
- type: PACKAGE_SOURCES
url: 'https://dev.getsol.us/source/{srcname}/'
url: 'https://github.com/getsolus/packages/tree/main/packages/{srcname|py_or_first_letter}/{srcname}/'
- type: PACKAGE_RECIPE
url: 'https://dev.getsol.us/source/{srcname}/browse/master/package.yml'
url: 'https://github.com/getsolus/packages/blob/main/packages/{srcname|py_or_first_letter}/{srcname}/package.yml'
- type: PACKAGE_RECIPE_RAW
url: 'https://dev.getsol.us/source/{srcname}/browse/master/package.yml?view=raw'
url: 'https://raw.githubusercontent.com/getsolus/packages/main/packages/{srcname|py_or_first_letter}/{srcname}/package.yml'
groups: [ all, production ]

0 comments on commit 8700a0c

Please sign in to comment.