Lines Matching refs:repo
345 parse_signature_type(struct repository *repo, const char *st)
348 repo->signature_type = SIGNATURE_FINGERPRINT;
350 repo->signature_type = SIGNATURE_PUBKEY;
352 repo->signature_type = SIGNATURE_NONE;
355 " ignoring repository %s", st, repo->name);
364 struct repository *repo;
365 STAILQ_FOREACH(repo, &repositories, next) {
366 if (strcmp(repo->name, name) == 0)
367 return (repo);
379 struct repository *repo;
382 repo = find_repository(reponame);
383 if (repo == NULL) {
384 repo = calloc(1, sizeof(struct repository));
385 if (repo == NULL)
388 repo->name = strdup(reponame);
389 if (repo->name == NULL)
398 free(repo->url);
399 repo->url = strdup(ucl_object_tostring(cur));
400 if (repo->url == NULL)
403 parse_mirror_type(repo, ucl_object_tostring(cur));
405 if (!parse_signature_type(repo, ucl_object_tostring(cur))) {
407 repo_free(repo);
409 STAILQ_REMOVE(&repositories, repo, repository, next);
413 free(repo->fingerprints);
414 repo->fingerprints = strdup(ucl_object_tostring(cur));
415 if (repo->fingerprints == NULL)
418 free(repo->pubkey);
419 repo->pubkey = strdup(ucl_object_tostring(cur));
420 if (repo->pubkey == NULL)
426 repo_free(repo);
428 STAILQ_REMOVE(&repositories, repo, repository, next);
434 if (repo->url == NULL) {
435 repo_free(repo);
439 STAILQ_INSERT_TAIL(&repositories, repo, next);
444 * Parse new repo style configs in style: