From 9becfc29d2b8b49845f25c3f539f6116456752c2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 24 Jan 2012 20:48:54 +0100 Subject: [PATCH] xbps-bin: fix pkgpattern to install new pkgs. --- bin/xbps-bin/transaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin/transaction.c b/bin/xbps-bin/transaction.c index 181ea137..47b9c937 100644 --- a/bin/xbps-bin/transaction.c +++ b/bin/xbps-bin/transaction.c @@ -252,11 +252,11 @@ install_new_pkg(const char *pkg, bool reinstall) pkgpatt = __UNCONST(pkg); } else { /* - * If only pkgname has been specified, always append - * '-[0-9]*' at the end, will be easier to parse. + * If only pkgname has been specified, always make it + * use a package pattern, i.e 'foo>=0'. */ pkgmatch = true; - pkgpatt = xbps_xasprintf("%s%s", pkg, "-[0-9]*"); + pkgpatt = xbps_xasprintf("%s%s", pkg, ">=0"); if (pkgpatt == NULL) return -1; }