pkg: store size, installed size and installed time info in blob buffer
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index 2e286ab030e5eec853448918794a2a5b19ef3a31..7f51ea9be7354164ea64d647111d38a6a3a04b74 100644 (file)
@@ -49,7 +49,7 @@ static void print_pkg(pkg_t * pkg)
        char *description = pkg_get_string(pkg, PKG_DESCRIPTION);
        printf("%s - %s", pkg->name, version);
        if (conf->size)
-               printf(" - %lu", pkg->size);
+               printf(" - %lu", (unsigned long) pkg_get_int(pkg, PKG_SIZE));
        if (description)
                printf(" - %s", description);
        printf("\n");