summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-29 22:32:10 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-03-29 22:32:10 +0200
commitd16c8be8a05a0b7fc9e1146d63bd13b5e3718fba (patch)
treed7a582faa74f9206dbab5107d30b68cf997d8fbf /src/pacman/pacman.c
parent95ea99e1973c03abe73b7c20ded9a24905420291 (diff)
downloadpacman-d16c8be8a05a0b7fc9e1146d63bd13b5e3718fba.tar.gz
pacman-d16c8be8a05a0b7fc9e1146d63bd13b5e3718fba.tar.xz
turned pmdepmissing_t into an opaque structure
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 2c610e23..730d9207 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -283,25 +283,25 @@ int pacman_deptest(list_t *targets)
switch(pm_errno) {
case PM_ERR_UNSATISFIED_DEPS:
for(lp = alpm_list_first(data); lp; lp = alpm_list_next(lp)) {
- pmdepmissing_t *miss = alpm_list_getdata(lp);
+ PM_DEPMISS *miss = alpm_list_getdata(lp);
if(!pmo_d_resolve) {
- MSG(NL, "requires: %s", 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, "requires: %s", 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");
}
- synctargs = list_add(synctargs, strdup(miss->depend.name));
+ synctargs = list_add(synctargs, alpm_dep_getinfo(miss, PM_DEP_NAME));
}
alpm_list_free(data);
break;
case PM_ERR_CONFLICTING_DEPS:
/* we can't auto-resolve conflicts */
for(lp = alpm_list_first(data); lp; lp = alpm_list_next(lp)) {
- pmdepmissing_t *miss = alpm_list_getdata(lp);
- MSG(NL, "conflict: %s", miss->depend.name);
+ PM_DEPMISS *miss = alpm_list_getdata(lp);
+ MSG(NL, "conflict: %s", alpm_dep_getinfo(miss, PM_DEP_NAME));
}
ret = 127;
alpm_list_free(data);