chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
transaction: do not add installed jobs to the transaction
[elogind.git]
/
src
/
core
/
transaction.c
diff --git
a/src/core/transaction.c
b/src/core/transaction.c
index 2a6f1de1384e7a246ec1be3cc3931b9818695da2..c00dd452eb1249f3c6d24dbb131faa9ca815147a 100644
(file)
--- 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;