Continue resolving dependencies rather than bailing on first error
commit2f96764058b89ff32c928a736308c5095f1ff764
authorDan McGee <dan@archlinux.org>
Fri, 25 Feb 2011 13:55:16 +0000 (25 07:55 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 25 Feb 2011 13:55:16 +0000 (25 07:55 -0600)
treeb85aa9d1b41b62d38f0ac8aba87bdbcd806d9375
parentd4d304cdb7b59e3b5ab7d5825404593a3476f127
Continue resolving dependencies rather than bailing on first error

This allows error messages emitted by the frontend to be a bit more
descriptive and not have the annoying "well why didn't you tell me that
the first time" problem. If a package had multiple missing deps, we
would bail on the first one before rather than finish processing all
missing dependencies, and only print one error message. Instead,
continue through this entire set of missing deps and append all eventual
errors.

The added pactest tests this case, as the to be installed package has
two missing dependencies. However, pactest does not actually test or see
the difference in output from before and after, so it passes in both
cases, but it is clearly visible in the logs.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/deps.c
test/pacman/tests/upgrade077.py [new file with mode: 0644]