Author: nacho Date: 2011-03-14 11:43:59 +0000 (Mon, 14 Mar 2011) New Revision: 11920
Modified: packages/trunk/bastet/debian/bastet.config packages/trunk/bastet/debian/bastet.templates packages/trunk/bastet/debian/po/templates.pot packages/trunk/bastet/debian/postinst Log: update debconf template and config script Modified: packages/trunk/bastet/debian/bastet.config =================================================================== --- packages/trunk/bastet/debian/bastet.config 2011-03-14 09:38:20 UTC (rev 11919) +++ packages/trunk/bastet/debian/bastet.config 2011-03-14 11:43:59 UTC (rev 11920) @@ -5,6 +5,6 @@ oldscores=/var/games/bastet.scores if [ -e "$oldscores" ] ; then - db_text high bastet/score_file_compatibility || true + db_input high bastet/score_file_compatibility || true db_go fi Modified: packages/trunk/bastet/debian/bastet.templates =================================================================== --- packages/trunk/bastet/debian/bastet.templates 2011-03-14 09:38:20 UTC (rev 11919) +++ packages/trunk/bastet/debian/bastet.templates 2011-03-14 11:43:59 UTC (rev 11920) @@ -1,17 +1,18 @@ Template: bastet/score_file_compatibility -Type: note -_Description: Bastet score file format has changed - It seems that you have got an old-style score file installed on +Type: select +__Choices: keep, remove +Default: keep +_Description: What would you like to do with the old scores file? + It seems that you have got an old-style scores file installed on your system located in '/var/games/bastet.scores'. . - As of version 0.53 the score file format has changed. + As of version 0.43 the scores file format has changed. As newer Bastet does not provide any compatibility layer with the - old format, your old score file is no longer valid. + old format, your old scores file is no longer valid. . - To prevent data loss, the old score file has been - kept intact in its original location. From now on - it's your responsibility keep track of it, since this package - will no longer take care of it. If you don't mind losing your - old high scores, it's recommended to manually remove the file to - avoid cluttering your system with files not handled by the - package manager. + To prevent data loss, it's time for you to choose what to do + with the old file. If you decide to keep it, it's your + responsibility to keep track of it in the future. + If you don't mind losing your old high scores, it's recommended + to remove the file to avoid cluttering your system with files + not handled by the package manager. Modified: packages/trunk/bastet/debian/po/templates.pot =================================================================== --- packages/trunk/bastet/debian/po/templates.pot 2011-03-14 09:38:20 UTC (rev 11919) +++ packages/trunk/bastet/debian/po/templates.pot 2011-03-14 11:43:59 UTC (rev 11920) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-03-13 19:35+0000\n" +"POT-Creation-Date: 2011-03-14 11:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -17,36 +17,48 @@ "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#. Type: note -#. Description +#. Type: select +#. Choices #: ../bastet.templates:1001 -msgid "Bastet score file format has changed" +msgid "keep" msgstr "" -#. Type: note +#. Type: select +#. Choices +#: ../bastet.templates:1001 +msgid "remove" +msgstr "" + +#. Type: select #. Description -#: ../bastet.templates:1001 +#: ../bastet.templates:1002 +msgid "What would you like to do with the old scores file?" +msgstr "" + +#. Type: select +#. Description +#: ../bastet.templates:1002 msgid "" -"It seems that you have got an old-style score file installed on your system " -"located in '/var/games/bastet.scores'." +"It seems that you have got an old-style scores file installed on your " +"system located in '/var/games/bastet.scores'." msgstr "" -#. Type: note +#. Type: select #. Description -#: ../bastet.templates:1001 +#: ../bastet.templates:1002 msgid "" -"As of version 0.53 the score file format has changed. As newer Bastet does " -"not provide any compatibility layer with the old format, your old score file " -"is no longer valid." +"As of version 0.43 the scores file format has changed. As newer Bastet does " +"not provide any compatibility layer with the old format, your old scores " +"file is no longer valid." msgstr "" -#. Type: note +#. Type: select #. Description -#: ../bastet.templates:1001 +#: ../bastet.templates:1002 msgid "" -"To prevent data loss, the old score file has been kept intact in its " -"original location. From now on it's your responsibility keep track of it, " -"since this package will no longer take care of it. If you don't mind losing " -"your old high scores, it's recommended to manually remove the file to avoid " -"cluttering your system with files not handled by the package manager." +"To prevent data loss, it's time for you to choose what to do with the old " +"file. If you decide to keep it, it's your responsibility to keep track of it " +"in the future. If you don't mind losing your old high scores, it's " +"recommended to remove the file to avoid cluttering your system with files " +"not handled by the package manager." msgstr "" Modified: packages/trunk/bastet/debian/postinst =================================================================== --- packages/trunk/bastet/debian/postinst 2011-03-14 09:38:20 UTC (rev 11919) +++ packages/trunk/bastet/debian/postinst 2011-03-14 11:43:59 UTC (rev 11920) @@ -1,12 +1,18 @@ #! /bin/sh # postinst script for bastet - set -e scores=/var/games/bastet.scores2 oldscores=/var/games/bastet.scores +deal_with_old_score_file () +{ + if [ "$1" = "remove" ] ; then + rm $oldscores + fi +} + # old version of bastet (< 0.41-6) will remove high score file # on upgrade, so rescue it if $(dpkg --compare-versions "$2" lt-nl 0.41-6) && [ -e "$oldscores.tmp" ] ; then @@ -21,7 +27,11 @@ . /usr/share/debconf/confmodule +if [ -e "$oldscores" ] ; then + db_get bastet/score_file_compatibility + deal_with_old_score_file $RET +fi + #DEBHELPER# exit 0 - _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

