On Wed, 25 Jun 2008, patrys wrote: > Author: patrys Date: Wed Jun 25 11:58:19 2008 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - use LUA in %post > > ---- Files affected: > SPECS: > pam.spec (1.286 -> 1.287) > > ---- Diffs: > > ================================================================ > Index: SPECS/pam.spec > diff -u SPECS/pam.spec:1.286 SPECS/pam.spec:1.287 > --- SPECS/pam.spec:1.286 Wed Jun 25 13:35:23 2008 > +++ SPECS/pam.spec Wed Jun 25 13:58:14 2008 > @@ -372,11 +372,15 @@ > rm -rf /var/lock/console > fi > > -%post > -if [ ! -a /var/log/tallylog ] ; then > - # don't use coreutils here > - (umask 177; :> /var/log/tallylog) > -fi > +%post -p <lua> > +fh, error = io.open("/var/log/tallylog") ^^^^^^ > +if file ~= nil then ^^^^ > + io.close(fh) ^^^^
Now that's interesting. Will it work? Janek -- Jan Rekorajski | ALL SUSPECTS ARE GUILTY. PERIOD! baggins<at>mimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY? BOFH, MANIAC | -- TROOPS by Kevin Rubio _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en