Re: yum update -- F16-latest => rawhide

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

 



On Tuesday 11 October 2011 20:02:41, Panu Matilainen wrote:
> This is a bug in rpm's handling of %pretrans dependencies. I'll try to
> get it fixed tomorrow, BUT this also does point out a problem in the
> package:
> 
> %pretrans scripts can almost never in real life be /bin/sh scripts,
> because on initial installation, at the point where %pretrans scripts
> get executed there is no shell! Or anything else for that matter. The
> only kind of %pretrans script that always work are ones using the
> embedded Lua interpreter, ie '%pretrans -p <lua>'. External interpreters
> in %pretrans are /supposed/ to work in upgrade scenarios (barring this
> bug, duh), but as in practise you can never guarantee a package is only
> ever applied as an update on an already running system, %pretrans
> scriptlets using /bin/sh or such external interpreter are not usable.

Thank you for explaining this. This didn't come to my mind. I will rewrite the 
script to Lua.

RPM is very uncomfortable when you need to replace a directory with a symbolic 
link. I do not know, how often this is needed, but some "simplification" would 
be appreciated. ;-)

Jan
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux