[Rpm-maint] [PATCH] fix handling of "%posttrans -p /xxx" with no body

Pixel pixel at mandriva.com
Thu Jun 5 14:49:10 UTC 2008


Signed-off-by: Pascal "Pixel" Rigaux <pixel at mandriva.com>
---
 lib/transaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/transaction.c b/lib/transaction.c
index c443b96..18dcbd7 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -911,7 +911,7 @@ static int runTransScripts(rpmts ts, rpmTag stag)
        }
        
        /* If no pre/post-transaction script, then don't bother. */
-       if (script == NULL)
+       if (script == NULL && scriptprog == NULL)
            continue;
 
        p->fd = ts->notify(p->h, RPMCALLBACK_INST_OPEN_FILE, 0, 0,
-- 
1.5.4.3




More information about the Rpm-maint mailing list