Hi all,

Right now I'm improving Webyast packaging, the problem is that installing
or updating a webyast package requires updating assets files, updating Gemfile 
then restarting Webyast to use the new/updated files.

Until now this was done in %post section, but this is very inefficient and 
slows down
the Webyast installation a lot.

There are almost 20 webyast modules and even if the update and restart takes 
about 3
seconds doing it 20 times results in extra 1 minute installation time. That's 
a lot IMO.

Therefore I switched to using libzypp update scripts
(/var/adm/update-scripts/%name-%version-%release-update) and restart is done 
once at the end.

So far so good.

The problem now is how to make this backward compatible with plain RPM update?

If you use rpm command for manual update then you need to run the update script
manually. If you miss it you'll be still running the old Webyast which will be
confusing for users.

So the question is: Is it possible to detect installation via libzypp or via 
rpm in %post script? Ideally I'd like to use update-scripts in libzypp 
and as a fallback in plain rpm installation I'd run the restart in each %post.

Or is it somehow possible to mix update-scripts and rpm %posttrans to support
transactions in both libzypp and plain rpm? Any examples?

Thank you a lot!


Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org

Reply via email to