chiark / gitweb /
machinectl: fix handling of --verify= argument for dkr downloads
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:15:08 +0000 (01:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:17:55 +0000 (01:17 +0100)
src/machine/machinectl.c

index 5a42f26..95acc93 100644 (file)
@@ -2000,7 +2000,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
         sd_bus *bus = userdata;
         int r;
 
-        if (!streq_ptr(arg_dkr_index_url, "no")) {
+        if (arg_verify != IMPORT_VERIFY_NO) {
                 log_error("Imports from DKR do not support image verification, please pass --verify=no.");
                 return -EINVAL;
         }