summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-07-13 11:15:16 +0000
committerjbj <devnull@localhost>2005-07-13 11:15:16 +0000
commit2a16343146d390ff3ee8f79c1e072f456cf5d70a (patch)
treea77df5338e0e8a59bb6f6c05c6966dfc922c820e /lib
parentd66903fe9c842ec5cb6bb3cf8f27e39c40420309 (diff)
downloadrpm-2a16343146d390ff3ee8f79c1e072f456cf5d70a.tar.gz
rpm-2a16343146d390ff3ee8f79c1e072f456cf5d70a.tar.bz2
rpm-2a16343146d390ff3ee8f79c1e072f456cf5d70a.zip
- fix: initialize variables used in debug msg (#160458).
CVS patchset: 7881 CVS date: 2005/07/13 11:15:16
Diffstat (limited to 'lib')
-rw-r--r--lib/psm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 2a14a5252..c57c15405 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -632,6 +632,10 @@ static rpmRC runScript(rpmpsm psm, Header h, const char * sln,
if (progArgv == NULL && script == NULL)
return rc;
+ /* XXX FIXME: except for %verifyscript, rpmteNEVR can be used. */
+ xx = headerNVR(h, &n, &v, &r);
+ xx = hge(h, RPMTAG_ARCH, NULL, (void **) &a, NULL);
+
if (progArgv && strcmp(progArgv[0], "<lua>") == 0) {
rpmMessage(RPMMESS_DEBUG,
_("%s: %s(%s-%s-%s.%s) running <lua> scriptlet.\n"),
@@ -642,10 +646,6 @@ static rpmRC runScript(rpmpsm psm, Header h, const char * sln,
psm->sq.reaper = 1;
- /* XXX FIXME: except for %verifyscript, rpmteNEVR can be used. */
- xx = headerNVR(h, &n, &v, &r);
- xx = hge(h, RPMTAG_ARCH, NULL, (void **) &a, NULL);
-
/* XXX bash must have functional libtermcap.so.2 */
if (!strcmp(n, "libtermcap"))
ldconfig_done = 0;