Mailinglist Archive: opensuse-packaging (67 mails)

< Previous Next >
[opensuse-packaging] splitting runlevel scripts
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Fri, 23 Jul 2010 22:23:39 +0200
  • Message-id: <20100723202339.GA11516@xxxxxxxxx>

A runlevel script X without further dependencies was split into X and Y.
Now Y needs to be started before X.
Both scripts are in the same rpm package.
Adding '# Required-Start: Y' to script X will break updating the package
because there seems to be no way to get Y enabled during the package
update.

For fresh install this may work.

%post
%{fillup_and_insserv -y -n Y Y}
%{fillup_and_insserv -y -n X X}

But for upgrade there is appearently no way to enable Y only if X is
already active.

How is this situation supposed to be handled, cleanly?


Olaf
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >