add rebuild implementation to interface

This commit is contained in:
2022-11-27 02:23:50 +02:00
parent eba247b759
commit 09623c20d5
13 changed files with 202 additions and 5 deletions

View File

@ -76,5 +76,5 @@ class Rebuild(Handler):
List[Package]: list of packages which were stored in database
"""
if from_database:
return application.repository.packages()
return [package for (package, _) in application.database.packages_get()]
return [package for (package, _) in application.database.packages_get()]
return application.repository.packages()