[aur] fix: not able to work with .xpm icons

This commit is contained in:
Vinicius Moreira
2019-10-21 15:21:52 -03:00
parent b0d09312c5
commit 7d9104d139
4 changed files with 3 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ def write(app: ArchPackage):
def fill_icon_path(app: ArchPackage, icon_paths: List[str], only_exact_match: bool):
ends_with = re.compile(r'.+/{}\.(png|svg)$'.format(app.icon_path if app.icon_path else app.name), re.IGNORECASE)
ends_with = re.compile(r'.+/{}\.(png|svg|xpm)$'.format(app.icon_path if app.icon_path else app.name), re.IGNORECASE)
for path in icon_paths:
if ends_with.match(path):
@@ -142,4 +142,3 @@ def save_several(pkgnames: Set[str], mirror: str, overwrite: bool = True, mainta
write(p)
return len(to_write)
return 0