xbps-bin: install: use a shell wildcard pattern if only pkgname is set.
This commit is contained in:
parent
c6636d1b79
commit
4f8e6c00af
@ -223,10 +223,10 @@ install_new_pkg(const char *pkg)
|
|||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* If only pkgname has been specified, always append
|
* If only pkgname has been specified, always append
|
||||||
* '>=0' at the end, will be easier to parse.
|
* '-[0-9]*' at the end, will be easier to parse.
|
||||||
*/
|
*/
|
||||||
pkgmatch = true;
|
pkgmatch = true;
|
||||||
pkgpatt = xbps_xasprintf("%s%s", pkg, ">=0");
|
pkgpatt = xbps_xasprintf("%s%s", pkg, "-[0-9]*");
|
||||||
if (pkgpatt == NULL)
|
if (pkgpatt == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user