aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-10 12:20:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-10 12:20:37 +0000
commit32bc8138101e01482000a980e1473cc77e8cff28 (patch)
tree443d39e59b105e6640e0ff3b52c9b2e55cd51379 /URPM.xs
parente6bd4839de6ca9a2a00bee11bf7e022b8a7a8933 (diff)
downloadperl-URPM-32bc8138101e01482000a980e1473cc77e8cff28.tar
perl-URPM-32bc8138101e01482000a980e1473cc77e8cff28.tar.gz
perl-URPM-32bc8138101e01482000a980e1473cc77e8cff28.tar.bz2
perl-URPM-32bc8138101e01482000a980e1473cc77e8cff28.tar.xz
perl-URPM-32bc8138101e01482000a980e1473cc77e8cff28.zip
RPMERR_* doesn't exist anymore in rpm.org HEAD
(nb: this code (rpmErrorWriteTo) is currently only used by Drakx)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index fb49bde..da0067b 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -136,7 +136,9 @@ static const void* unused_variable(const void *p) {
static int rpmError_callback_data;
void rpmError_callback() {
+#ifndef RPM_ORG
if (rpmErrorCode() != RPMERR_UNLINK && rpmErrorCode() != RPMERR_RMDIR)
+#endif
write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage()));
}