aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-10 12:15:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-10 12:15:38 +0000
commite6bd4839de6ca9a2a00bee11bf7e022b8a7a8933 (patch)
tree5e09c283320e159dc403cc50114816f4dbdb0080
parentd15af5bbf2c199a04e93e380eba1689363bf6a21 (diff)
downloadperl-URPM-e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933.tar
perl-URPM-e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933.tar.gz
perl-URPM-e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933.tar.bz2
perl-URPM-e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933.tar.xz
perl-URPM-e6bd4839de6ca9a2a00bee11bf7e022b8a7a8933.zip
simplify
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 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) */