Commit bfabf8f8 authored by Timo Teräs's avatar Timo Teräs
Browse files

pkg: fix package scanner to read whole archive

otherwise we don't get chechksum anymore after the changes to
support partial gzip checksumming.
parent 981bc118
...@@ -372,7 +372,7 @@ static int read_info_entry(void *ctx, const struct apk_file_info *ae, ...@@ -372,7 +372,7 @@ static int read_info_entry(void *ctx, const struct apk_file_info *ae,
if (strcmp(ae->name, ".INSTALL") == 0) { if (strcmp(ae->name, ".INSTALL") == 0) {
apk_warning("Package '%s-%s' contains deprecated .INSTALL", apk_warning("Package '%s-%s' contains deprecated .INSTALL",
pkg->name->name, pkg->version); pkg->name->name, pkg->version);
return 1; return 0;
} }
} else if (strncmp(ae->name, "var/db/apk/", 11) == 0) { } else if (strncmp(ae->name, "var/db/apk/", 11) == 0) {
/* APK 1.0 format */ /* APK 1.0 format */
...@@ -407,7 +407,7 @@ static int read_info_entry(void *ctx, const struct apk_file_info *ae, ...@@ -407,7 +407,7 @@ static int read_info_entry(void *ctx, const struct apk_file_info *ae,
ri->has_install = 1; ri->has_install = 1;
} else if (ri->version == 2) { } else if (ri->version == 2) {
/* All metdata of version 2.x package handled */ /* All metdata of version 2.x package handled */
return 1; return 0;
} else { } else {
/* Version 1.x packages do not contain installed size /* Version 1.x packages do not contain installed size
* in metadata, so we calculate it here */ * in metadata, so we calculate it here */
......
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