--- debian-old/config	2006-07-30 20:09:00.000000000 +0200
+++ debian/config	2006-07-29 17:26:36.000000000 +0200
@@ -2,6 +2,8 @@
 
 . /usr/share/debconf/confmodule
 
+config=/etc/exult.cfg
+
 getkey='BEGIN { $k = shift } if (m|</(.*?)>|) { $p =~ s|/$1$|| or die "line $.: </$1> unexpected\n"; next } m|<(.*?)>| and $p .= "/$1", next; $p eq $k && s/^\s*// && s/\s*$/\n/ and print;'
 
 for game in blackgate serpent; do
@@ -9,8 +11,11 @@
     blackgate) key=/config/disk/game/blackgate/path;;
     serpent)   key=/config/disk/game/serpentisle/path;;
   esac
-  val=`perl -ne "$getkey" $key /etc/exult.cfg`
-  [ "$val" ] && db_set exult/$game $val
+
+  if [ -e $config ]; then
+    val=`perl -ne "$getkey" $key $config`
+    [ "$val" ] && db_set exult/$game $val
+  fi
 
   while true; do
     set +e
