summaryrefslogtreecommitdiff
path: root/src/import/pull-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-22 00:39:09 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-22 01:59:25 +0200
commit1f9aa80a59e581dee9fc886eb6d7f3ca40bc609a (patch)
tree9b9479e00cd6dc790402263c16e5529f622860ab /src/import/pull-common.c
parent7705a4053d83b5da22c9354a44be26ffc8e24f5a (diff)
import: correct handling if .nspawn file could not be downloaded
Diffstat (limited to 'src/import/pull-common.c')
-rw-r--r--src/import/pull-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/pull-common.c b/src/import/pull-common.c
index 90d28f04d9..edebb91556 100644
--- a/src/import/pull-common.c
+++ b/src/import/pull-common.c
@@ -366,9 +366,10 @@ int pull_verify(PullJob *main_job,
log_info("SHA256 checksum of %s is valid.", main_job->url);
- assert(!settings_job || settings_job->state == PULL_JOB_DONE);
+ assert(!settings_job || IN_SET(settings_job->state, PULL_JOB_DONE, PULL_JOB_FAILED));
if (settings_job &&
+ settings_job->state == PULL_JOB_DONE &&
settings_job->error == 0 &&
!settings_job->etag_exists) {