mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
fix: find arch packages desktop entries
This commit is contained in:
@@ -101,7 +101,7 @@ def save_several(pkgnames: Set[str], mirror: str, overwrite: bool = True) -> int
|
|||||||
if desktop_files:
|
if desktop_files:
|
||||||
desktop_matches, no_exact_match = {}, set()
|
desktop_matches, no_exact_match = {}, set()
|
||||||
for pkg in to_cache: # first try to find exact matches
|
for pkg in to_cache: # first try to find exact matches
|
||||||
ends_with = re.compile('.+/{}.desktop$'.format(pkg), re.IGNORECASE)
|
ends_with = re.compile('/usr/share/applications/{}.desktop$'.format(pkg), re.IGNORECASE)
|
||||||
|
|
||||||
for f in desktop_files:
|
for f in desktop_files:
|
||||||
if ends_with.match(f):
|
if ends_with.match(f):
|
||||||
|
|||||||
Reference in New Issue
Block a user