From 79d10376e13fa02f49c7b1d2ea60b7876e372db0 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 17 May 2009 14:07:12 +0200 Subject: [PATCH] entropy.server: avoid queueing packages for removal on non-default repo --- libraries/entropy/server/interfaces/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/entropy/server/interfaces/main.py b/libraries/entropy/server/interfaces/main.py index 04b4cf72b..7c9914a66 100644 --- a/libraries/entropy/server/interfaces/main.py +++ b/libraries/entropy/server/interfaces/main.py @@ -2428,7 +2428,10 @@ class Server(Singleton,TextInterface): continue dorm = True - if dorm: + # checking if we are allowed to remove stuff on this repo + # it xrepo is not the default one, we MUST skip this to + # avoid touching what developer doesn't expect + if dorm and (xrepo == self.default_repository): trashed = self.is_counter_trashed(counter) if trashed: # search into portage then