Lines Matching refs:local
36 static int normalize_local(const char *local, const char *url, char **ret) { in normalize_local() argument
42 if (!local) in normalize_local()
45 if (!path_is_absolute(local)) { in normalize_local()
46 ll = path_join(arg_image_root, local); in normalize_local()
50 local = ll; in normalize_local()
53 if (!path_is_valid(local)) in normalize_local()
55 "Local path name '%s' is not valid.", local); in normalize_local()
58 } else if (local) { in normalize_local()
60 if (!hostname_is_valid(local, 0)) in normalize_local()
63 local); in normalize_local()
66 r = image_find(IMAGE_MACHINE, local, NULL, NULL); in normalize_local()
69 … return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local); in normalize_local()
73 local); in normalize_local()
77 if (!ll && local) { in normalize_local()
78 ll = strdup(local); in normalize_local()
109 const char *url, *local; in pull_tar() local
117 local = empty_or_dash_to_null(argv[2]); in pull_tar()
129 local = ll; in pull_tar()
132 if (!local && FLAGS_SET(arg_pull_flags, PULL_DIRECT)) in pull_tar()
135 r = normalize_local(local, url, &normalized); in pull_tar()
182 const char *url, *local; in pull_raw() local
190 local = empty_or_dash_to_null(argv[2]); in pull_raw()
202 local = ll; in pull_raw()
205 r = normalize_local(local, url, &normalized); in pull_raw()