[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg divert in preinst scripts


On Tue, Apr 13, 2010 at 08:33:47AM +0100, Neil Williams wrote:

> That gets recursive very, very quickly. I don't know of any maintainer
> scripts that are truly architecture-neutral because even a shell script
> ends up calling binary executables to do the work. How much can you
> realistically do in a POSIX shell without calling 'cp', 'ls', 'grep',
> 'echo', 'mv' or 'ldconfig'? What about the shell interpreter itself?
> That's compiled.

Hence my script parser approach. I understand what "cp" does, so I don't
need to run the target binary.

> Emdebian certainly doesn't want to encourage maintainer scripts using
> perl or python because Crush won't support either interpreter.

That, and I'd need to write another parser if I wanted to handle it
using my method.


Reply to: