On Mon, Sep 08, 2008 at 01:20:19PM +0400, Alexey M. Tourbin wrote: > Update of /people/at/packages/rpm.git > > Changes statistics since common ancestor `4.0.4-alt95.M41.2' follows: > configure.in | 1 + > lib/psm.c | 63 +++++++++++++++++++++++++++++++++++-- > lib/psm.h | 5 +++ > lib/transaction.c | 10 ++++++ > rpm-4_0.spec | 4 ++ > scripts/Makefile.am | 2 + > scripts/posttrans-filetriggers.in | 32 +++++++++++++++++++ > 7 files changed, 114 insertions(+), 3 deletions(-) > > Changelog since common ancestor `4.0.4-alt95.M41.2' follows: > commit 462bd2a2b95b6946ccd347b8d1848943d5ae3c99 > Author: Alexey Tourbin > Date: Mon Sep 8 10:57:19 2008 +0400 > > implemented posttrans filetriggers, vaguely based on Mandriva patch Давайте сперва в Сизиф. > + const char *file = rpmGetPath(ts->rpmdb->db_home, "/files-awaiting-filetriggers"); > + const char *script = RPMCONFIGDIR "/posttrans-filetriggers"; > + const char *argv[] = { script, file, NULL }; > + rpmMessage(RPMMESS_VERBOSE, _("Running %s\n"), script); > + int rc = runScript(psm, NULL, script, 2, argv, NULL, 0, 0); Может быть, будет лучше сделать временный файл (с уникальным для транзакции именем)? -- ldv