Commit 014d3948 authored by Timo Teräs's avatar Timo Teräs

db: do not install .PKGINFO files

parent 57154db8
......@@ -675,6 +675,9 @@ static int apk_db_install_archive_entry(struct apk_archive_entry *ae,
const char *p;
int r = 0, type;
if (strcmp(ae->name, ".PKGINFO") == 0)
return 0;
if (strncmp(ae->name, "var/db/apk/", 11) == 0) {
p = &ae->name[11];
if (strncmp(p, pkg->name->name, strlen(pkg->name->name)) != 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment