summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-19 05:23:45 +0100
committerAaron Griffin <aaron@archlinux.org>2007-03-19 05:23:45 +0100
commitbd55cf548c63958e6d4e8c15ccd5bed3972e0574 (patch)
tree41cf89dc9d7b0f25ebfb1a3afeb5d4807ee55aca /src
parentcf6f184243a230b8f0b775269ced06a239827bd1 (diff)
downloadpacman-bd55cf548c63958e6d4e8c15ccd5bed3972e0574.tar.gz
pacman-bd55cf548c63958e6d4e8c15ccd5bed3972e0574.tar.xz
James Rosten <seinfeld90@gmail.com>
* Two new pactest test cases * Fix some "required by" / "requires" output by unifying all "dependency types" to a single value (PM_DEP_TYPE_DEPEND)
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 4245b964..3d5289a0 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -618,10 +618,8 @@ int pacman_sync(alpm_list_t *targets)
case PM_ERR_UNSATISFIED_DEPS:
for(i = data; i; i = alpm_list_next(i)) {
pmdepmissing_t *miss = alpm_list_getdata(i);
- MSG(NL, ":: %s %s %s", alpm_dep_get_target(miss),
- alpm_dep_get_type(miss) == PM_DEP_TYPE_DEPEND ?
- _("requires") : _("is required by"),
- alpm_dep_get_name(miss));
+ MSG(NL, ":: %s %s %s", alpm_dep_get_target(miss), _("requires"),
+ alpm_dep_get_name(miss));
switch(alpm_dep_get_mod(miss)) {
case PM_DEP_MOD_ANY:
break;