xbps-bin::util.c: do not use C99 struct initialization, it's too long to type.
This commit is contained in:
parent
cb7b44bc13
commit
90549d829a
@ -42,102 +42,27 @@ struct object_info {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct object_info obj_info[] = {
|
static const struct object_info obj_info[] = {
|
||||||
{
|
{ "repository", "Repository: " },
|
||||||
.key = "repository",
|
{ "filename", "Binary package: " },
|
||||||
.descr = "Repository: "
|
{ "filename-size", "Binary package size" },
|
||||||
},
|
{ "filename-sha256", "Binary package SHA256: " },
|
||||||
{
|
{ "archive-compression-type", "Binary package compression type: " },
|
||||||
.key = "filename",
|
{ "pkgname", "Package name: " },
|
||||||
.descr = "Binary package: "
|
{ "version", "Version: " },
|
||||||
},
|
{ "installed_size", "Installed size" },
|
||||||
{
|
{ "maintainer", "Maintainer: " },
|
||||||
.key = "filename-size",
|
{ "architecture", "Architecture: " },
|
||||||
.descr = "Binary package size"
|
{ "homepage", "Upstream URL: " },
|
||||||
},
|
{ "license", "License(s): " },
|
||||||
{
|
{ "build_date", "Package build date: " },
|
||||||
.key = "filename-sha256",
|
{ "preserve", "Preserve files" },
|
||||||
.descr = "Binary package SHA256: "
|
{ "replaces", "Replaces these packages" },
|
||||||
},
|
{ "provides", "Provides these virtual packages" },
|
||||||
{
|
{ "conflicts", "Conflicts with" },
|
||||||
.key = "archive-compression-type",
|
{ "conf_files", "Configuration files" },
|
||||||
.descr = "Binary package compression type: "
|
{ "short_desc", "Description: " },
|
||||||
},
|
{ "long_desc", "" },
|
||||||
{
|
{ NULL, NULL }
|
||||||
.key = "pkgname",
|
|
||||||
.descr = "Package: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "installed_size",
|
|
||||||
.descr = "Installed size"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "maintainer",
|
|
||||||
.descr = "Maintainer: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "architecture",
|
|
||||||
.descr = "Architecture: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "version",
|
|
||||||
.descr = "Version: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "homepage",
|
|
||||||
.descr = "Upstream URL: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "license",
|
|
||||||
.descr = "License(s): "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "build_date",
|
|
||||||
.descr = "Package build date: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "preserve",
|
|
||||||
.descr = "Preserve files"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "replaces",
|
|
||||||
.descr = "Replaces these packages"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "provides",
|
|
||||||
.descr = "Provides virtual packages"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "conflicts",
|
|
||||||
.descr = "Conflicts with"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "hold",
|
|
||||||
.descr = "Hold update"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "update-first",
|
|
||||||
.descr = "Always update first"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "virtual-prefer",
|
|
||||||
.descr = "Virtual packages enabled"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "conf_files",
|
|
||||||
.descr = "Configuration files"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "short_desc",
|
|
||||||
.descr = "Description: "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = "long_desc",
|
|
||||||
.descr = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.key = NULL,
|
|
||||||
.descr = NULL
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user