Blame rpm-4.8.1-getoutput-emsg.patch
|
Panu Matilainen |
cc0630 |
From 5711982e27c70bea4017632255a94630ea10d1ab Mon Sep 17 00:00:00 2001
|
|
Panu Matilainen |
cc0630 |
From: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
cc0630 |
Date: Wed, 30 Jun 2010 12:27:56 +0300
|
|
Panu Matilainen |
cc0630 |
Subject: [PATCH 2/2] Make the infamous getOutputFrom() error message more useful
|
|
Panu Matilainen |
cc0630 |
- ...like actually saying what was the failing script, doh
|
|
Panu Matilainen |
cc0630 |
- leaving the function name there for a googling hint
|
|
Panu Matilainen |
cc0630 |
|
|
Panu Matilainen |
cc0630 |
---
|
|
Panu Matilainen |
cc0630 |
build/rpmfc.c | 3 ++-
|
|
Panu Matilainen |
cc0630 |
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
Panu Matilainen |
cc0630 |
|
|
Panu Matilainen |
cc0630 |
diff --git a/build/rpmfc.c b/build/rpmfc.c
|
|
Panu Matilainen |
cc0630 |
index e76363a..3c915f5 100644
|
|
Panu Matilainen |
cc0630 |
--- a/build/rpmfc.c
|
|
Panu Matilainen |
cc0630 |
+++ b/build/rpmfc.c
|
|
Panu Matilainen |
cc0630 |
@@ -234,7 +234,8 @@ top:
|
|
Panu Matilainen |
cc0630 |
if ((nbw = write(toProg[1], writePtr,
|
|
Panu Matilainen |
cc0630 |
(1024
|
|
Panu Matilainen |
cc0630 |
if (errno != EAGAIN) {
|
|
Panu Matilainen |
cc0630 |
- perror("getOutputFrom()");
|
|
Panu Matilainen |
cc0630 |
+ rpmlog(RPMLOG_ERR, _("%s: failure writing to %s: %m\n"),
|
|
Panu Matilainen |
cc0630 |
+ __func__, argv[0]);
|
|
Panu Matilainen |
cc0630 |
exit(EXIT_FAILURE);
|
|
Panu Matilainen |
cc0630 |
}
|
|
Panu Matilainen |
cc0630 |
nbw = 0;
|
|
Panu Matilainen |
cc0630 |
--
|
|
Panu Matilainen |
cc0630 |
1.7.0.1
|
|
Panu Matilainen |
cc0630 |
|