[entropy.server] make use of CachedRepository too, required in order to be 100% compliant with Entropy Client methods
This commit is contained in:
@@ -37,8 +37,9 @@ from entropy.core.settings.base import SystemSettings
|
||||
|
||||
import entropy.tools
|
||||
|
||||
__all__ = ["ClientEntropyRepositoryPlugin", "InstalledPackagesRepository",
|
||||
"AvailablePackagesRepository", "GenericRepository"]
|
||||
__all__ = ["CachedRepository", "ClientEntropyRepositoryPlugin",
|
||||
"InstalledPackagesRepository", "AvailablePackagesRepository",
|
||||
"GenericRepository"]
|
||||
|
||||
class ClientEntropyRepositoryPlugin(EntropyRepositoryPlugin):
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ from entropy.misc import RSS
|
||||
from entropy.cache import EntropyCacher
|
||||
from entropy.exceptions import OnlineMirrorError
|
||||
from entropy.security import Repository as RepositorySecurity
|
||||
from entropy.client.interfaces.db import CachedRepository
|
||||
from entropy.i18n import _
|
||||
|
||||
from entropy.server.interfaces.rss import ServerRssMetadata
|
||||
@@ -165,7 +166,7 @@ class ServerRepositoryStatus(Singleton):
|
||||
return self.__updates_log[db]
|
||||
|
||||
|
||||
class ServerPackagesRepository(EntropyRepository):
|
||||
class ServerPackagesRepository(CachedRepository):
|
||||
"""
|
||||
This class represents the installed packages repository and is a direct
|
||||
subclass of EntropyRepository.
|
||||
|
||||
Reference in New Issue
Block a user