Skip to content

Commit

Permalink
repo: Add a big warning if one is using meta v1 as we will remove sup…
Browse files Browse the repository at this point in the history
…port after 1.17

Discussed with: bapt
  • Loading branch information
evadot committed May 4, 2021
1 parent 6f9d784 commit deaa4dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libpkg/pkg_repo_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ pkg_repo_meta_load(const int fd, struct pkg_repo_meta **target)
}

/* Now we support only v1 and v2 meta */
if (version == 1)
if (version == 1) {
schema = pkg_repo_meta_open_schema_v1();
printf("WARNING: Meta v1 support will be removed in the next version\n");
}
else if (version == 2)
schema = pkg_repo_meta_open_schema_v2();
else {
Expand Down

0 comments on commit deaa4dc

Please sign in to comment.