Skip to content

Commit 206da9f

Browse files
committed
lib: correctly set is_signed
1 parent 223fd6a commit 206da9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/repo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ repo_read_meta(struct xbps_repo *repo, struct archive *ar)
195195
repo->uri, archive_error_string(ar));
196196
return -archive_errno(ar);
197197
}
198-
repo->idxmeta = xbps_dictionary_create();
198+
repo->idxmeta = NULL;
199199
return 0;
200200
}
201201

@@ -228,6 +228,7 @@ repo_read_meta(struct xbps_repo *repo, struct archive *ar)
228228
return r;
229229
}
230230

231+
repo->is_signed = true;
231232
xbps_dictionary_make_immutable(repo->idxmeta);
232233
return 0;
233234
}

0 commit comments

Comments
 (0)