diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-04-18 18:15:49 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-04-20 17:12:28 +0200 |
commit | 3c956cfee29fe2642fbe257f55adb3583a4af878 (patch) | |
tree | 3c718d54400d7d77b82f1ca5d5f42f1eb3789ebb | |
parent | 1da4264fbd0fa5e6b1bd5e0ac4674a3503774369 (diff) |
transaction: do not add installed jobs to the transaction
Do not attempt to optimize away the job creation by refering to installed jobs.
We do not want to disturb installed jobs until commiting the transaction.
(A later patch to job merging will make the separation of transaction jobs and
installed jobs complete.)
-rw-r--r-- | src/core/transaction.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c index 2a6f1de138..c00dd452eb 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -760,13 +760,9 @@ static Job* transaction_add_one_job(Transaction *tr, JobType type, Unit *unit, b } } - if (unit->job && unit->job->type == type) - j = unit->job; - else { - j = job_new(unit, type); - if (!j) - return NULL; - } + j = job_new(unit, type); + if (!j) + return NULL; j->generation = 0; j->marker = NULL; |