First step towards unifying triggers into rpmScript API
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 2 Sep 2011 07:54:00 +0000 (10:54 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 2 Sep 2011 07:57:17 +0000 (10:57 +0300)
commit49089b2649918872efe05ed0d37d55a22c7c2136
treeedcd3eb9b13be18e3e7ad18fdb0a83504921a16b
parent52e0467126942d67e971f2ee09e4d7d7ddb275c5
First step towards unifying triggers into rpmScript API

- Add a lower level script creation function to deal with the
  body expansions and such, use it for triggers as well.
- This is still fairly ugly but its something that can be reasonably
  backported to 4.9.x which needs this too, as currently triggers
  are forgetting to set script->descr, causing "(null) failure" messages
  on glibc and on others, in would just crash on trigger failure
  and/or in debug verbosity level.
lib/psm.c
lib/rpmscript.c
lib/rpmscript.h