Add an API for creating real rpmScript items out of triggers, use it
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 2 Sep 2011 09:43:53 +0000 (12:43 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 2 Sep 2011 09:51:04 +0000 (12:51 +0300)
commitecaf972db05f6b23514a747c4a503268658ac98d
treea980714ab7c2690152a36fbfd7ad3ebcad48c808
parent49089b2649918872efe05ed0d37d55a22c7c2136
Add an API for creating real rpmScript items out of triggers, use it

- Bury rpmScriptNew() into being internal helper in rpmscript -
  triggers and other scripts differ quite a bit in how their data
  is laid out in the header, especially args need "special attention".
- Besides cleaning up things in the psm side, this technically makes
  trigger scripts runnable without having a header at hand. Of course
  currently trigger scripts are currently created and destroyed
  on the spot from headers so this is of academic interest...
lib/psm.c
lib/rpmscript.c
lib/rpmscript.h