diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-09-15 20:20:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-09-15 20:20:46 +0000 |
commit | 7a7ace77759e4803951b12cfe45083b12e6c8826 (patch) | |
tree | 3d2bf5413d108ca941950075dedab33029cee176 /scripts | |
parent | 7dc10c1b5462c434bb976fded298e82bcf71c0c5 (diff) | |
download | bootsplash-7a7ace77759e4803951b12cfe45083b12e6c8826.tar bootsplash-7a7ace77759e4803951b12cfe45083b12e6c8826.tar.gz bootsplash-7a7ace77759e4803951b12cfe45083b12e6c8826.tar.bz2 bootsplash-7a7ace77759e4803951b12cfe45083b12e6c8826.tar.xz bootsplash-7a7ace77759e4803951b12cfe45083b12e6c8826.zip |
fix upgrading mandrakelinux-theme to mandriva-theme by patching remove-theme
("remove-theme Mandrakelinux" from the preun of mandrakelinux-theme
will be called after the switch-theme from the post of mandriva-theme)
this also implies mandriva-theme prereq this bootsplash
nb: this whole mess is caused by preun of mandrakelinux-theme being called with "$1" = 0
because of the package name change
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/remove-theme | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/remove-theme b/scripts/remove-theme index 9263b1b..728c810 100644 --- a/scripts/remove-theme +++ b/scripts/remove-theme @@ -36,5 +36,11 @@ function update_boot () { fi } +if [ "$1" = Mandrakelinux ]; then + # in case we are upgrading mandrakelinux-theme to mandriva-theme + # "remove-theme Mandrakelinux" will be called thinking there is no theme anymore + grep -qi "THEME=Mandriva" $sysconfig && exit 0 +fi + remove_theme update_boot |