summaryrefslogtreecommitdiff
path: root/src/import/import.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-24 16:41:51 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-24 16:53:05 +0100
commitea1ae8c38e669351b909cf8cc0c1e6fd140c1b58 (patch)
treebb0f09531b2ddab197a229fbc452478cfd86da91 /src/import/import.c
parent51929718dd2dc056f841a97e79efb48a8d8fd64b (diff)
import: make the dkr import URL a part of the import object, not the import name object
Diffstat (limited to 'src/import/import.c')
-rw-r--r--src/import/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/import.c b/src/import/import.c
index 11d2e05f09..8b9ca4f724 100644
--- a/src/import/import.c
+++ b/src/import/import.c
@@ -115,11 +115,11 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL);
sd_event_add_signal(event, NULL, SIGINT, NULL, NULL);
- r = dkr_import_new(&import, event, on_finished, event);
+ r = dkr_import_new(&import, event, arg_dkr_index_url, on_dkr_finished, event);
if (r < 0)
return log_error_errno(r, "Failed to allocate importer: %m");
- r = dkr_import_pull(import, arg_dkr_index_url, name, tag, local, arg_force);
+ r = dkr_import_pull(import, name, tag, local, arg_force);
if (r < 0)
return log_error_errno(r, "Failed to pull image: %m");