[entropy.server] do not taint database (update revision) if db is read only
This commit is contained in:
@@ -141,4 +141,4 @@ class ServerRepositoryStatus(Singleton):
|
||||
"""
|
||||
if db not in self.__updates_log:
|
||||
self.__updates_log[db] = {}
|
||||
return self.__updates_log[db]
|
||||
return self.__updates_log[db]
|
||||
|
||||
@@ -131,6 +131,10 @@ class ServerEntropyRepositoryPlugin(EntropyRepositoryPlugin):
|
||||
dbs = ServerRepositoryStatus()
|
||||
dbfile = entropy_repository_instance.dbFile
|
||||
repo = entropy_repository_instance.dbname
|
||||
read_only = entropy_repository_instance.readOnly
|
||||
if read_only:
|
||||
# do not taint database
|
||||
return 0
|
||||
|
||||
# taint the database status
|
||||
taint_file = self._server.get_local_database_taint_file(repo = repo)
|
||||
|
||||
Reference in New Issue
Block a user