Lines Matching defs:local
60 const char *url, *local;
71 local = argv[2];
77 local = l;
80 if (isempty(local) || streq(local, "-"))
81 local = NULL;
83 if (local) {
84 r = tar_strip_suffixes(local, &ll);
88 local = ll;
90 if (!machine_name_is_valid(local)) {
91 log_error("Local image name '%s' is not valid.", local);
96 r = image_find(local, NULL);
98 return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
100 log_error_errno(EEXIST, "Image '%s' already exists.", local);
105 log_info("Pulling '%s', saving as '%s'.", url, local);
121 r = tar_pull_start(pull, url, local, arg_force, arg_verify, arg_settings);
146 const char *url, *local;
157 local = argv[2];
163 local = l;
166 if (isempty(local) || streq(local, "-"))
167 local = NULL;
169 if (local) {
170 r = raw_strip_suffixes(local, &ll);
174 local = ll;
176 if (!machine_name_is_valid(local)) {
177 log_error("Local image name '%s' is not valid.", local);
182 r = image_find(local, NULL);
184 return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
186 log_error_errno(EEXIST, "Image '%s' already exists.", local);
191 log_info("Pulling '%s', saving as '%s'.", url, local);
207 r = raw_pull_start(pull, url, local, arg_force, arg_verify, arg_settings);