Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=2286690c4bda59ad0758fcc5de18a63423e11565
commit 2286690c4bda59ad0758fcc5de18a63423e11565 Author: Michel Hermier <herm...@frugalware.org> Date: Tue Nov 18 10:43:22 2014 +0100 pacman-g2: Fix -Qo invocation code. diff --git a/src/pacman-g2/query.c b/src/pacman-g2/query.c index a7da2eb..ac10812 100644 --- a/src/pacman-g2/query.c +++ b/src/pacman-g2/query.c @@ -145,12 +145,12 @@ int querypkg(FStringList *targets) return errors; } - for(FPtrListIterator *targ = f_ptrlist_first(targets), *end = f_ptrlist_end(targets); targ != end; targ = f_ptrlistitem_next(targ)) { - char *package = list_data(targ); + /* determine the owner of a file */ + if(config->op_q_owns) { + for(FPtrListIterator *targ = f_ptrlist_first(targets), *end = f_ptrlist_end(targets); targ != end; targ = f_ptrlistitem_next(targ)) { + char *package = list_data(targ); + PM_LIST *data; - /* determine the owner of a file */ - if(config->op_q_owns) { - PM_LIST *data; if((data = pacman_pkg_getowners(package)) == NULL) { ERR(NL, _("No package owns %s\n"), package); errors++; @@ -163,6 +163,11 @@ int querypkg(FStringList *targets) } continue; } + return errors; + } + + for(FPtrListIterator *targ = f_ptrlist_first(targets), *end = f_ptrlist_end(targets); targ != end; targ = f_ptrlistitem_next(targ)) { + char *package = list_data(targ); /* find packages in the db */ if(package == NULL) { _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git