On Thu, 2016-02-25 at 13:24 +0000, Markos Chandras wrote:
On 25/02/16 12:05, Ancor Gonzalez Sosa wrote:
Three sprints in a row and we keep blogging about YaST development!
https://lizards.opensuse.org/?p=11707
Enjoy
Hi,
Hi,
Very useful report thank you. I am curious about the 'package notification' feature. How does libzypp/Zypper decides whether it needs to display a package notification or not? I presume it searches the RPM file for a specific file(s) as a hint for a notification? In other words, how can I make such a notification for one of my packages?
If a package wants a notification to be shown, it will write a file in /var/adm/update-messages/. You can see an example in mariadb spec file[1]. While I was playing with this feature, I added something like this in a dummy package: %post cat > %{_localstatedir}/adm/update-messages/%{name}-%{version} -%{release} << EOF This is just a update message from dummy-package. EOF And that's all!
Thank you.
You're welcome. Regards, Imo [1] https://build.opensuse.org/package/view_file/openSUSE:Factory/maria db/mariadb.spec?expand=1 -- Imobach González Sosa YaST Team at SUSE LINUX GmbH -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org