manager: don't garbage collect jobs when isolating, to change global state

This commit is contained in:
Lennart Poettering 2011-04-07 18:45:34 +02:00
parent 222ae6a8d7
commit a8049b7a7c

View File

@ -1273,7 +1273,8 @@ static int transaction_activate(Manager *m, JobMode mode, DBusError *e) {
for (;;) {
/* Fourth step: Let's remove unneeded jobs that might
* be lurking. */
transaction_collect_garbage(m);
if (mode != JOB_ISOLATE)
transaction_collect_garbage(m);
/* Fifth step: verify order makes sense and correct
* cycles if necessary and possible */
@ -1303,7 +1304,8 @@ static int transaction_activate(Manager *m, JobMode mode, DBusError *e) {
/* Seventh step: an entry got dropped, let's garbage
* collect its dependencies. */
transaction_collect_garbage(m);
if (mode != JOB_ISOLATE)
transaction_collect_garbage(m);
/* Let's see if the resulting transaction still has
* unmergeable entries ... */