mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-08-25 02:49:56 +00:00
Complete official repository support (#59)
This commit is contained in:
@ -86,7 +86,7 @@ class IndexView(BaseView):
|
||||
"status_color": status.status.bootstrap_color(),
|
||||
"timestamp": pretty_datetime(status.timestamp),
|
||||
"version": package.version,
|
||||
"web_url": package.web_url,
|
||||
"web_url": package.remote.web_url if package.remote is not None else None,
|
||||
} for package, status in sorted(self.service.packages, key=lambda item: item[0].base)
|
||||
]
|
||||
service = {
|
||||
|
@ -50,7 +50,7 @@ class SearchView(BaseView):
|
||||
HTTPNotFound: if no packages found
|
||||
"""
|
||||
search: List[str] = self.request.query.getall("for", default=[])
|
||||
packages = AUR.multisearch(*search)
|
||||
packages = AUR.multisearch(*search, pacman=self.service.repository.pacman)
|
||||
if not packages:
|
||||
raise HTTPNotFound(reason=f"No packages found for terms: {search}")
|
||||
|
||||
|
Reference in New Issue
Block a user