summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2007-10-27 01:14:35 +0200
committerDan McGee <dan@archlinux.org>2007-10-26 18:54:21 -0500
commitd903fc607ee2aa2527202f1e54a44be325eabe48 (patch)
treece93a474cfe1a6a52d5c55c6bad0dba8e4fe6195 /lib/libalpm/sync.c
parentb609cb0a5dfe595318975dfe4c6c37a168b7d979 (diff)
downloadpacman-d903fc607ee2aa2527202f1e54a44be325eabe48.tar.xz
Dependency error/log messages fix
The old code used only the depend.name in messages, which might have not been informative. The new code uses the whole dependency string in %DEPENDS% format. (Dan: slight English clarification in one of the messages) Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 3e12ffb5..f4ed6dd3 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -674,8 +674,10 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync
pmsyncpkg_t *sp = l->data;
pmpkg_t *sppkg = sp->pkg;
if(alpm_depcmp(sppkg, &(miss->depend))) {
+ char *missdepstring = alpm_dep_get_string(&(miss->depend));
_alpm_log(PM_LOG_DEBUG, "sync: dependency '%s' satisfied by package '%s'\n",
- miss->depend.name, alpm_pkg_get_name(sppkg));
+ missdepstring, alpm_pkg_get_name(sppkg));
+ free(missdepstring);
satisfied = 1;
}
}