[zypp-devel] Commit plugin for libzypp
Hi, Where can I find more information about the hooks available for libzypp commit plugins? I would like to understand if I can use the plugin to check every package after it has been downloaded, but before it is passed to rpm for installation. I would be very thankful for the information, because this doesn't give enough information. Thank you and Best Regards, Elena.
On Wednesday 18 January 2012 08:37:42 Reshetova, Elena wrote:
Where can I find more information about the hooks available for libzypp commit plugins?
http://doc.opensuse.org/projects/libzypp/HEAD/plugin-commit.html
I would like to understand if I can use the plugin to check every package after it has been downloaded, but before it is passed to rpm for installation.
In it's current state you can't. Only begin/end of installation is sent to the plugin without further data. This serves the basic needs of the snapper plugin (do btrfs snapshots at begin/end of installation). We'd like to implement more triggers in the future, but by now there's no schedule for this. We are planing a few features which will impact the installation workflow (e.g. parallel download while installing). As this will also affect any commit plugin, we postponed this until the new installation workflow is established. Maybe you can tell a bit about your usecase, so we can keep it in mind when designing the triggers. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
Hi, Thank you for the reply! I am sorry to get back on this so late. I guess this clarified the situation. I don't have like a ready-made full use case, but the idea was to use the hooks during different part of installation in order to be able perform some modifications on the rpms that are being downloaded before they passed to the rpm for installation. So, I would actually need only one hook that is called after rpm has been downloaded, but before rpm library is called to install it. Anyway, I have decided not to go this path for other reasons, so this functionality isn't really needed now. Just was nice to discover that this is smth that might come in the future! Best Regards, Elena. -----Original Message----- From: Michael Andres [mailto:ma@suse.de] Sent: Wednesday, January 18, 2012 12:22 PM To: zypp-devel@opensuse.org Subject: Re: [zypp-devel] Commit plugin for libzypp On Wednesday 18 January 2012 08:37:42 Reshetova, Elena wrote:
Where can I find more information about the hooks available for libzypp commit plugins?
http://doc.opensuse.org/projects/libzypp/HEAD/plugin-commit.html
I would like to understand if I can use the plugin to check every package after it has been downloaded, but before it is passed to rpm for installation.
In it's current state you can't. Only begin/end of installation is sent to the plugin without further data. This serves the basic needs of the snapper plugin (do btrfs snapshots at begin/end of installation). We'd like to implement more triggers in the future, but by now there's no schedule for this. We are planing a few features which will impact the installation workflow (e.g. parallel download while installing). As this will also affect any commit plugin, we postponed this until the new installation workflow is established. Maybe you can tell a bit about your usecase, so we can keep it in mind when designing the triggers. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (2)
-
Michael Andres
-
Reshetova, Elena