diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2007-10-27 01:14:35 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-27 01:54:21 +0200 |
commit | d903fc607ee2aa2527202f1e54a44be325eabe48 (patch) | |
tree | ce93a474cfe1a6a52d5c55c6bad0dba8e4fe6195 /src/util | |
parent | b609cb0a5dfe595318975dfe4c6c37a168b7d979 (diff) | |
download | pacman-d903fc607ee2aa2527202f1e54a44be325eabe48.tar.gz pacman-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 'src/util')
-rw-r--r-- | src/util/testdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c index 1331f2c2..a06456a4 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -178,8 +178,10 @@ int main(int argc, char **argv) for(i = data; i; i = alpm_list_next(i)) { pmdepmissing_t *miss = alpm_list_getdata(i); pmdepend_t *dep = alpm_miss_get_dep(miss); + char *depstring = alpm_dep_get_string(dep); printf("missing dependency for %s : %s\n", alpm_miss_get_target(miss), - alpm_dep_get_name(dep)); + depstring); + free(depstring); } /* check requiredby */ |