summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/import/importd.c4
-rw-r--r--src/import/pull.c14
2 files changed, 8 insertions, 10 deletions
diff --git a/src/import/importd.c b/src/import/importd.c
index 40900ce36d..92ad801306 100644
--- a/src/import/importd.c
+++ b/src/import/importd.c
@@ -343,9 +343,7 @@ static int transfer_start(Transfer *t) {
if (t->pid == 0) {
const char *cmd[] = {
"systemd-pull",
- t->type == TRANSFER_TAR ? "pull-tar" :
- t->type == TRANSFER_RAW ? "pull-raw" :
- "pull-dkr",
+ transfer_type_to_string(t->type),
"--verify",
NULL, /* verify argument */
NULL, /* maybe --force */
diff --git a/src/import/pull.c b/src/import/pull.c
index 9bd8b77477..ee3ff68036 100644
--- a/src/import/pull.c
+++ b/src/import/pull.c
@@ -328,9 +328,9 @@ static int help(int argc, char *argv[], void *userdata) {
" --image-root= Image root directory\n"
" --dkr-index-url=URL Specify index URL to use for downloads\n\n"
"Commands:\n"
- " pull-tar URL [NAME] Download a TAR image\n"
- " pull-raw URL [NAME] Download a RAW image\n"
- " pull-dkr REMOTE [NAME] Download a DKR image\n",
+ " tar URL [NAME] Download a TAR image\n"
+ " raw URL [NAME] Download a RAW image\n"
+ " dkr REMOTE [NAME] Download a DKR image\n",
program_invocation_short_name);
return 0;
@@ -412,10 +412,10 @@ static int parse_argv(int argc, char *argv[]) {
static int import_main(int argc, char *argv[]) {
static const Verb verbs[] = {
- { "help", VERB_ANY, VERB_ANY, 0, help },
- { "pull-tar", 2, 3, 0, pull_tar },
- { "pull-raw", 2, 3, 0, pull_raw },
- { "pull-dkr", 2, 3, 0, pull_dkr },
+ { "help", VERB_ANY, VERB_ANY, 0, help },
+ { "tar", 2, 3, 0, pull_tar },
+ { "raw", 2, 3, 0, pull_raw },
+ { "dkr", 2, 3, 0, pull_dkr },
{}
};