Re: [Rpm-maint] upgrade process

2009-03-20 Thread Stanislav Brabec
Michael Schroeder wrote in Fri 03/20 2009 at 12:21 +0100: On Thu, Mar 19, 2009 at 05:49:21PM +0100, Stanislav Brabec wrote: Package smartsuite was renamed to smartmontools, but the script /etc/init.d/smartd remains without change. Start on installation, restart (once) on update, stop on

Re: [Rpm-maint] upgrade process

2009-03-20 Thread Michael Schroeder
On Thu, Mar 19, 2009 at 05:49:21PM +0100, Stanislav Brabec wrote: Package smartsuite was renamed to smartmontools, but the script /etc/init.d/smartd remains without change. Start on installation, restart (once) on update, stop on removal. It's easy top do with package-name based scripts.

Re: [Rpm-maint] upgrade process

2009-03-19 Thread Stanislav Brabec
Michael Schroeder wrote in Fri 03/13 2009 at 17:24 +0100: so i am loosing the symlink as it gets removed by the postun in the old package - i guess i need to work on the install/upgrade/erase syntax in there but i am struggling to fins an example i fully understand!! There are two ways to

Re: [Rpm-maint] upgrade process

2009-03-19 Thread Michael Schroeder
On Thu, Mar 19, 2009 at 02:12:01PM +0100, Stanislav Brabec wrote: I have been thinking about it as well. Such simple definition may work in simple cases (foo-1.0 replaced by foo-1.1), but it will be problematic for more complicated cases: 1) Imagine that package foo-1 is going to be split

Re: [Rpm-maint] upgrade process

2009-03-19 Thread Stanislav Brabec
Michael Schroeder wrote in Thu 03/19 2009 at 15:35 +0100: 1) Imagine that package foo-1 is going to be split to three sub-packages: foo-core-2, foo-plugins-base-2 and foo-plugins-extra-2. Now we are going to upgrade from foo-1 to foo-core-2+foo-plugins-base-2, omitting the

Re: [Rpm-maint] upgrade process

2009-03-19 Thread Stanislav Brabec
Michael Schroeder wrote in Thu 03/19 2009 at 16:49 +0100: On Thu, Mar 19, 2009 at 04:32:27PM +0100, Stanislav Brabec wrote: Michael Schroeder wrote in Thu 03/19 2009 at 15:35 +0100: If it obsoletes another package it's an upgrade. And what if the action you need is say foo-extra-update

Re: [Rpm-maint] upgrade process

2009-03-15 Thread Tom Brown
thanks - i put this in the %postun # Only remove symlink if we are erasing package if [ $1 = 0 ]; then if [ -h /usr/java/latest ] ; then rm -f /usr/java/latest ; fi fi but on an upgrade the symlink still got wiped out. I was sure that looked right when compared to

[Rpm-maint] upgrade process

2009-03-13 Thread Tom Brown
When an rpm is upgraded is the existing package removed before or after the post section of the package that is replacing it? I ask because in my %post of a package a symlink gets created. This symlink is also removed if the package is removed so in the %postun If i install the rpm the

Re: [Rpm-maint] upgrade process

2009-03-13 Thread Michael Schroeder
On Fri, Mar 13, 2009 at 08:06:41AM -0500, Mark Hatle wrote: New packages files installed Old package files removed (ones not already overwritten by the install) postun run post run Not really. The order is: prein new install files from new postin new preun old delete