The following commit has been merged in the master branch:
commit a853a68b369434fdcbf6404de87b5d9f91aaac2b
Author: Gerfried Fuchs <[email protected]>
Date:   Fri Aug 13 21:23:39 2010 +0200

    Also divert the old manpages

diff --git a/debian/wesnoth-1.8-core.postinst b/debian/wesnoth-1.8-core.postinst
index bd8affd..c6909ec 100644
--- a/debian/wesnoth-1.8-core.postinst
+++ b/debian/wesnoth-1.8-core.postinst
@@ -7,11 +7,20 @@ set -e
 
 divert_oldfiles()
 {
+       # programs
        for i in wesnoth wesnoth-nolog wesnoth-smallgui wesnoth-editor; do
                dpkg-divert --package wesnoth-1.8-core \
                        --divert /usr/games/$i-old \
                        --rename /usr/games/$i
        done
+
+       # manpages
+       for i in ca...@valencia cs da de en_GB es et fi fr gl hu it ja \
+               lt nl pl sk sr s...@latin sv tr zh_CN zh_TW; do
+               dpkg-divert --package wesnoth-1.8-core \
+                       --divert /usr/share/man/$i/man6/wesnoth-old.6.gz \
+                       --rename /usr/share/man/$i/man6/wesnoth.6.gz
+       done
 }
 
 setup_alternatives()
diff --git a/debian/wesnoth-1.8-core.postrm b/debian/wesnoth-1.8-core.postrm
index e140255..fe1c3e2 100644
--- a/debian/wesnoth-1.8-core.postrm
+++ b/debian/wesnoth-1.8-core.postrm
@@ -7,10 +7,18 @@ set -e
 
 divert_oldfiles()
 {
+       # programs
        for i in wesnoth wesnoth-nolog wesnoth-smallgui wesnoth-editor; do 
                dpkg-divert --remove --package wesnoth-1.8-core \
                        --rename /usr/games/$i
        done
+
+       # manpages
+       for i in ca...@valencia cs da de en_GB es et fi fr gl hu it ja \
+               lt nl pl sk sr s...@latin sv tr zh_CN zh_TW; do
+               dpkg-divert --remove --package wesnoth-1.8-core \
+                       --rename /usr/share/man/$i/man6/wesnoth.6.gz
+       done
 }
 
 setup_alternatives()
diff --git a/debian/wesnoth-BRANCH-core.postinst.in 
b/debian/wesnoth-BRANCH-core.postinst.in
index 52283bc..11d977a 100644
--- a/debian/wesnoth-BRANCH-core.postinst.in
+++ b/debian/wesnoth-BRANCH-core.postinst.in
@@ -7,11 +7,20 @@ set -e
 
 divert_oldfiles()
 {
+       # programs
        for i in wesnoth wesnoth-nolog wesnoth-smallgui wesnoth-editor; do
                dpkg-divert --package wesnoth-BRANCH-core \
                        --divert /usr/games/$i-old \
                        --rename /usr/games/$i
        done
+
+       # manpages
+       for i in ca...@valencia cs da de en_GB es et fi fr gl hu it ja \
+               lt nl pl sk sr s...@latin sv tr zh_CN zh_TW; do
+               dpkg-divert --package wesnoth-BRANCH-core \
+                       --divert /usr/share/man/$i/man6/wesnoth-old.6.gz \
+                       --rename /usr/share/man/$i/man6/wesnoth.6.gz
+       done
 }
 
 setup_alternatives()
diff --git a/debian/wesnoth-BRANCH-core.postrm.in 
b/debian/wesnoth-BRANCH-core.postrm.in
index b16e291..c48cfa9 100644
--- a/debian/wesnoth-BRANCH-core.postrm.in
+++ b/debian/wesnoth-BRANCH-core.postrm.in
@@ -7,10 +7,18 @@ set -e
 
 divert_oldfiles()
 {
+       # programs
        for i in wesnoth wesnoth-nolog wesnoth-smallgui wesnoth-editor; do 
                dpkg-divert --remove --package wesnoth-BRANCH-core \
                        --rename /usr/games/$i
        done
+
+       # manpages
+       for i in ca...@valencia cs da de en_GB es et fi fr gl hu it ja \
+               lt nl pl sk sr s...@latin sv tr zh_CN zh_TW; do
+               dpkg-divert --remove --package wesnoth-BRANCH-core \
+                       --rename /usr/share/man/$i/man6/wesnoth.6.gz
+       done
 }
 
 setup_alternatives()

-- 
Debian packaging of wesnoth

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to