db: print dependencies referring to missing tags instead of tags
parent
fc57b73101
commit
60ee611620
|
@ -1316,13 +1316,18 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* repository id 0 is the no-tag repo */
|
/* repository id 0 is the no-tag repo */
|
||||||
for (i = 1; i < db->num_repo_tags; i++) {
|
for (i = 0; i < db->world->num; i++) {
|
||||||
if (!db->repo_tags[i].allowed_repos) {
|
struct apk_dependency *dep = &db->world->item[i];
|
||||||
apk_warning("Repository tag (%d) '" BLOB_FMT "' used in world is no longer available",
|
int tag = dep->repository_tag;
|
||||||
i, BLOB_PRINTF(*db->repo_tags[i].name));
|
|
||||||
|
if (tag == 0 || db->repo_tags[tag].allowed_repos != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
apk_warning("The repository tag for world dependency '%s@" BLOB_FMT "' does not exist",
|
||||||
|
dep->name->name,
|
||||||
|
BLOB_PRINTF(*db->repo_tags[tag].name));
|
||||||
db->missing_tags = 1;
|
db->missing_tags = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (db->compat_newfeatures) {
|
if (db->compat_newfeatures) {
|
||||||
apk_warning("This apk-tools is OLD! Some packages %s.",
|
apk_warning("This apk-tools is OLD! Some packages %s.",
|
||||||
|
|
Loading…
Reference in New Issue