Re: Upgrade scriptlet

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

 



On Sat, 16 Apr 2011 11:11:28 +0200, TM wrote:

> Hi,
> 
> when I want a script to be run during package upgrade, is it better to
> call it in %postun if $1>=1, or to call it in
> %post if $1>1? Is one of the two possibilities preferred?

It depends on what the script is supposed to do and whether files from the
old pkg are still around and may be needed by the script/program or may
confuse the script/program. When %postun is executed, any old pkg files
have been removed already.

$1>=1 for %postun would not be well-defined, btw.

https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Syntax
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Scriptlet_Ordering

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


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux