xbps-uhelper: fixed 'register' target (regression added in recent commits).
This commit is contained in:
parent
52cdec886c
commit
30932b3c55
@ -117,7 +117,7 @@ main(int argc, char **argv)
|
||||
struct xbps_handle xh;
|
||||
struct xferstat xfer;
|
||||
const char *pkgn, *version, *rootdir = NULL, *confdir = NULL;
|
||||
char *plist, *pkgname, *in_chroot_env, *hash;
|
||||
char *plist, *pkgname, *in_chroot_env, *hash, *tmp;
|
||||
bool in_chroot = false;
|
||||
int flags = 0, i, c, rv = 0;
|
||||
|
||||
@ -188,6 +188,10 @@ main(int argc, char **argv)
|
||||
prop_dictionary_set_cstring_nocopy(dict, "short_desc", argv[3]);
|
||||
prop_dictionary_set_bool(dict, "automatic-install", false);
|
||||
|
||||
tmp = xbps_xasprintf("%s-%s", argv[1], argv[2]);
|
||||
assert(tmp != NULL);
|
||||
prop_dictionary_set_cstring_nocopy(dict, "pkgver", tmp);
|
||||
|
||||
pkgd = xbps_pkgdb_get_pkgd(argv[1], false);
|
||||
if (pkgd != NULL) {
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
|
Loading…
Reference in New Issue
Block a user