From e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Dec 2007 12:15:38 +0000 Subject: simplify --- URPM.xs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/URPM.xs b/URPM.xs index 8bd0b61..fb49bde 100644 --- a/URPM.xs +++ b/URPM.xs @@ -136,9 +136,8 @@ static const void* unused_variable(const void *p) { static int rpmError_callback_data; void rpmError_callback() { - if (rpmErrorCode() != RPMERR_UNLINK && rpmErrorCode() != RPMERR_RMDIR) { + if (rpmErrorCode() != RPMERR_UNLINK && rpmErrorCode() != RPMERR_RMDIR) write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage())); - } } /* needed for importing keys (from rpmio) */ -- cgit v1.2.1