diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 22:32:10 +0200 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 22:32:10 +0200 |
commit | d16c8be8a05a0b7fc9e1146d63bd13b5e3718fba (patch) | |
tree | d7a582faa74f9206dbab5107d30b68cf997d8fbf /src/pacman/add.c | |
parent | 95ea99e1973c03abe73b7c20ded9a24905420291 (diff) | |
download | pacman-d16c8be8a05a0b7fc9e1146d63bd13b5e3718fba.tar.gz pacman-d16c8be8a05a0b7fc9e1146d63bd13b5e3718fba.tar.xz |
turned pmdepmissing_t into an opaque structure
Diffstat (limited to 'src/pacman/add.c')
-rw-r--r-- | src/pacman/add.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/pacman/add.c b/src/pacman/add.c index b3bc05ad..0cff3937 100644 --- a/src/pacman/add.c +++ b/src/pacman/add.c @@ -83,13 +83,14 @@ int pacman_add(list_t *targets) switch(pm_errno) { case PM_ERR_UNSATISFIED_DEPS: for(i = alpm_list_first(data); i; i = alpm_list_next(i)) { - pmdepmissing_t *miss = alpm_list_getdata(i); + PM_DEPMISS *miss = alpm_list_getdata(i); - MSG(NL, ":: %s: requires %s", miss->target, miss->depend.name); - switch(miss->depend.mod) { - case PM_DEP_EQ: MSG(CL, "=%s", miss->depend.version); break; - case PM_DEP_GE: MSG(CL, ">=%s", miss->depend.version); break; - case PM_DEP_LE: MSG(CL, "<=%s", miss->depend.version); break; + MSG(NL, ":: %s: requires %s", alpm_dep_getinfo(miss, PM_DEP_TARGET), + alpm_dep_getinfo(miss, PM_DEP_NAME)); + switch((int)alpm_dep_getinfo(miss, PM_DEP_MOD)) { + case PM_DEP_MOD_EQ: MSG(CL, "=%s", alpm_dep_getinfo(miss, PM_DEP_VERSION)); break; + case PM_DEP_MOD_GE: MSG(CL, ">=%s", alpm_dep_getinfo(miss, PM_DEP_VERSION)); break; + case PM_DEP_MOD_LE: MSG(CL, "<=%s", alpm_dep_getinfo(miss, PM_DEP_VERSION)); break; } MSG(CL, "\n"); } @@ -97,10 +98,10 @@ int pacman_add(list_t *targets) break; case PM_ERR_CONFLICTING_DEPS: for(i = alpm_list_first(data); i; i = alpm_list_next(i)) { - pmdepmissing_t *miss = alpm_list_getdata(i); + PM_DEPMISS *miss = alpm_list_getdata(i); MSG(NL, ":: %s: conflicts with %s", - miss->target, miss->depend.name, miss->depend.name); + alpm_dep_getinfo(miss, PM_DEP_TARGET), alpm_dep_getinfo(miss, PM_DEP_NAME)); } alpm_list_free(data); break; |