Catch write errors when generating scriptlet temporary files
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Apr 2011 09:59:07 +0000 (12:59 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Apr 2011 10:02:51 +0000 (13:02 +0300)
commit6f75f9e7640e2ef08ae65c9038fcedad2c96ae72
tree5d1580d9bc22a798a73aa5d9aad3e4b0f697c803
parent3eb92ff6d3030de913f2f3a4926b71c2cac07763
Catch write errors when generating scriptlet temporary files
- If the write fails scripts are likely to fail anyway, but executing
  partial scriptlets (unlikely as that might be) could have funny
  side-effects besides just failing.
- Also cleans up runExtScript() a little bit by moving the
  tmp file creation to a separate function.
lib/rpmscript.c