xbps-bin::show_pkg_info() remove useless prop_object_type_t member.

This commit is contained in:
Juan RP 2011-02-04 18:00:47 +01:00
parent 40cf7bad32
commit d25bc35711

View File

@ -40,7 +40,6 @@ struct object_info {
const char *key; const char *key;
const char *descr; const char *descr;
const char *sep; const char *sep;
prop_type_t type;
bool from_repo; bool from_repo;
}; };
@ -49,118 +48,119 @@ static const struct object_info obj_info[] = {
.key = "filename", .key = "filename",
.descr = "Binary package:", .descr = "Binary package:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = true .from_repo = true
}, },
{ {
.key = "filename-size", .key = "filename-size",
.descr = "Binary package size", .descr = "Binary package size",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_NUMBER,
.from_repo = true .from_repo = true
}, },
{ {
.key = "filename-sha256", .key = "filename-sha256",
.descr = "Binary package SHA256:", .descr = "Binary package SHA256:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = true .from_repo = true
}, },
{ {
.key = "archive-compression-type", .key = "archive-compression-type",
.descr = "Binary package compression type:", .descr = "Binary package compression type:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = "pkgname", .key = "pkgname",
.descr = "Package:", .descr = "Package:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = "installed_size", .key = "installed_size",
.descr = "Installed size", .descr = "Installed size",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_NUMBER,
.from_repo = false .from_repo = false
}, },
{ {
.key = "maintainer", .key = "maintainer",
.descr = "Maintainer:", .descr = "Maintainer:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = "architecture", .key = "architecture",
.descr = "Architecture:", .descr = "Architecture:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = "version", .key = "version",
.descr = "Version:", .descr = "Version:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = "preserve", .key = "preserve",
.descr = "Preserve files", .descr = "Preserve files",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_BOOL,
.from_repo = false .from_repo = false
}, },
{ {
.key = "replaces", .key = "replaces",
.descr = "Replaces these packages:", .descr = "Replaces these packages:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_ARRAY,
.from_repo = false .from_repo = false
}, },
{ {
.key = "provides", .key = "provides",
.descr = "Provides virtual packages:", .descr = "Provides virtual packages:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_ARRAY,
.from_repo = false .from_repo = false
}, },
{ {
.key = "conflicts", .key = "conflicts",
.descr = "Conflicts with:", .descr = "Conflicts with:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_ARRAY, .from_repo = false
},
{
.key = "hold",
.descr = "Hold update",
.sep = NULL,
.from_repo = false
},
{
.key = "update-first",
.descr = "Always update first",
.sep = NULL,
.from_repo = false
},
{
.key = "virtual-prefer",
.descr = "Virtual packages enabled",
.sep = NULL,
.from_repo = false .from_repo = false
}, },
{ {
.key = "conf_files", .key = "conf_files",
.descr = "Configuration files:\n", .descr = "Configuration files:\n",
.sep = " ", .sep = " ",
.type = PROP_TYPE_ARRAY,
.from_repo = false .from_repo = false
}, },
{ {
.key = "short_desc", .key = "short_desc",
.descr = "Description:", .descr = "Description:",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false }, .from_repo = false },
{ {
.key = "long_desc", .key = "long_desc",
.descr = " ", .descr = " ",
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_STRING,
.from_repo = false .from_repo = false
}, },
{ {
.key = NULL, .key = NULL,
.descr = NULL, .descr = NULL,
.sep = NULL, .sep = NULL,
.type = PROP_TYPE_UNKNOWN,
.from_repo = false .from_repo = false
} }
}; };