From 4f8e6c00af9277ac602e15aa51268a444da6e46d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Oct 2011 10:03:54 +0200 Subject: [PATCH] xbps-bin: install: use a shell wildcard pattern if only pkgname is set. --- bin/xbps-bin/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index 3b978e65..b5ad81e4 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -223,10 +223,10 @@ install_new_pkg(const char *pkg) } else { /* * 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; - pkgpatt = xbps_xasprintf("%s%s", pkg, ">=0"); + pkgpatt = xbps_xasprintf("%s%s", pkg, "-[0-9]*"); if (pkgpatt == NULL) return -1; }