summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-04-15 14:46:47 +0200
committerMichael Schroeder <mls@suse.de>2013-04-15 14:46:47 +0200
commit52dcb04b44f15f193ee6f78671bef658decc480f (patch)
tree250f210541f385bd7df5b2fe1b32f8b6ab4483d1 /tools
parent1da63a9e704f9143c09c0c02c29669c85bee6de2 (diff)
downloadlibsolv-52dcb04b44f15f193ee6f78671bef658decc480f.tar.gz
libsolv-52dcb04b44f15f193ee6f78671bef658decc480f.tar.bz2
libsolv-52dcb04b44f15f193ee6f78671bef658decc480f.zip
convert perror() and fprintf() calls to pool_error()
Diffstat (limited to 'tools')
-rw-r--r--tools/findfileconflicts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/findfileconflicts.c b/tools/findfileconflicts.c
index a59c097..712602d 100644
--- a/tools/findfileconflicts.c
+++ b/tools/findfileconflicts.c
@@ -17,13 +17,17 @@ iterate_handle(Pool *pool, Id p, void *cbdata)
{
Solvable *s = pool->solvables + p;
Id rpmdbid;
+ void *handle;
if (!s->repo->rpmdbid)
return 0;
rpmdbid = s->repo->rpmdbid[p - s->repo->start];
if (!rpmdbid)
return 0;
- return rpm_byrpmdbid(cbdata, rpmdbid);
+ handle = rpm_byrpmdbid(cbdata, rpmdbid);
+ if (!handle)
+ fprintf(stderr, "rpm_byrpmdbid: %s\n", pool_errstr(pool));
+ return handle;
}
int main(int argc, char **argv)