hi, i'm attaching a hook: if you want to try it then you should save it as /etc/pacman-g2/hooks/update-frugalware-version and it'll update menu.lst and /etc/frugalware-release after a -Syu
three notes: 1) in case we enable this by default, it would be possible to request users to include this info in the bugreport which would be helpful i think 2) of course this does not require us to update menu.lst accordingly but i think it's a good idea to have them in sync 3) you may find this ugly. i like it but if it's a matter of taste. anybody who says it's horrible? :) and a question: what do you think about including this by default? as you can see it only affects -current machines, it won't do anything on -stable thanks, - VMiklos
#!/bin/sh post_sysupgrade() { if grep -q '^[^#].*frugalware-current$' /etc/pacman-g2.conf; then verf="/var/lib/pacman-g2/frugalware-current/.version" if [ -e $verf ]; then sed -i "s/ \(.*\) (/ `cat $verf` (/" /etc/frugalware-release fi fi if [ -e /boot/grub/menu.lst ]; then sed -i "s/Frugalware .*)/`cat /etc/frugalware-release`/" \ /boot/grub/menu.lst fi } op=$1 shift $op $*
pgplyWNO6CJ12.pgp
Description: PGP signature
_______________________________________________ Frugalware-devel mailing list Frugalware-devel@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-devel