Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
pkg_get: add missing attributes
Baptiste Daroussin committed 3 years ago
commit 119cf4c8c144a9183d9d29d3b5325cf1cb66a4d3
parent 10c1b55fc4ca5e1bc78ae9b633b87e670c9938eb
1 file changed +24 -0
modified libpkg/pkg_attributes.c
@@ -223,6 +223,30 @@ pkg_get_element(struct pkg *p, pkg_attr a)
		e->string = p->name;
		e->type = PKG_STR;
		break;
+
	case PKG_ATTR_MAINTAINER:
+
		e->string = p->maintainer;
+
		e->type = PKG_STR;
+
		break;
+
	case PKG_ATTR_PREFIX:
+
		e->string = p->prefix;
+
		e->type = PKG_STR;
+
		break;
+
	case PKG_ATTR_DESC:
+
		e->string = p->desc;
+
		e->type = PKG_STR;
+
		break;
+
	case PKG_ATTR_WWW:
+
		e->string = p->www;
+
		e->type = PKG_STR;
+
		break;
+
	case PKG_ATTR_ABI:
+
		e->string = p->abi;
+
		e->type = PKG_STR;
+
		break;
+
	case PKG_ATTR_ARCH:
+
		e->string = p->arch;
+
		e->type = PKG_STR;
+
		break;
	case PKG_ATTR_VERSION:
		e->string = p->version;
		e->type = PKG_STR;