[entropy.server] scan_package_changes: do not validate package removal/injection if inspected repo is not the base one
This commit is contained in:
@@ -3086,6 +3086,7 @@ class Server(Singleton, TextInterface):
|
||||
to_be_injected = set()
|
||||
my_settings = self.SystemSettings[self.sys_settings_plugin_id]['server']
|
||||
exp_based_scope = my_settings['exp_based_scope']
|
||||
base_repository_id = my_settings['base_repository_id']
|
||||
|
||||
server_repos = list(my_settings['repositories'].keys())
|
||||
|
||||
@@ -3157,9 +3158,9 @@ class Server(Singleton, TextInterface):
|
||||
dorm = True
|
||||
|
||||
# checking if we are allowed to remove stuff on this repo
|
||||
# it xrepo is not the default one, we MUST skip this to
|
||||
# it xrepo is not the base one, we MUST skip this to
|
||||
# avoid touching what developer doesn't expect
|
||||
if dorm and (xrepo == self.default_repository):
|
||||
if dorm and (xrepo == base_repository_id):
|
||||
trashed = self.is_counter_trashed(counter)
|
||||
if trashed:
|
||||
# search into portage then
|
||||
|
||||
Reference in New Issue
Block a user