[med-svn] r3053 - trunk/packages/mlstdbnet/trunk/debian

tille at alioth.debian.org tille at alioth.debian.org
Sun Jan 25 08:23:09 UTC 2009


Author: tille
Date: 2009-01-25 08:23:09 +0000 (Sun, 25 Jan 2009)
New Revision: 3053

Modified:
   trunk/packages/mlstdbnet/trunk/debian/config
   trunk/packages/mlstdbnet/trunk/debian/postinst
Log:
Handle only one locus per debconf for the moment, this has to be fixed later


Modified: trunk/packages/mlstdbnet/trunk/debian/config
===================================================================
--- trunk/packages/mlstdbnet/trunk/debian/config	2009-01-24 08:15:39 UTC (rev 3052)
+++ trunk/packages/mlstdbnet/trunk/debian/config	2009-01-25 08:23:09 UTC (rev 3053)
@@ -1,5 +1,5 @@
 #!/bin/sh
-set -e
+set -ex
 
 # export should ensure that pkg is available in the template
 export pkg=mlstdbnet
@@ -58,12 +58,14 @@
     if [ "$PUBLICDESCRIPTION" != "##PublicDescription##" -a "$PUBLICDESCRIPTION" != "" ] ; then
 	db_set ${pkg}/publicdescription "$PUBLICDESCRIPTION"
     fi
-    LOCUSFULLNAME=`grep '<locus fullname=' /etc/${pkg}/${XMLNAME}.xml | sed 's/.*<locus fullname="\([^"]*\)".*/\1/'`
+    # Currently this only works for the first lokus. Later we will have to
+    # loop over all locii
+    LOCUSFULLNAME=`grep '<locus fullname=' /etc/${pkg}/${XMLNAME}.xml | sed 's/.*<locus fullname="\([^"]*\)".*/\1/' | head -n 1`
     # verify whether LocusFullName is set in config file
     if [ "$LOCUSFULLNAME" != "##LocusFullName##" -a "$LOCUSFULLNAME" != "" ] ; then
 	db_set ${pkg}/locusfullname "$LOCUSFULLNAME"
     fi
-    LOCUS=`grep '<locus fullname=' /etc/${pkg}/${XMLNAME}.xml | sed 's?.*<locus fullname="[^>]*>\([^<]\+\)</locus>?\1?'`
+    LOCUS=`grep '<locus fullname=' /etc/${pkg}/${XMLNAME}.xml | sed 's?.*<locus fullname="[^>]*>\([^<]\+\)</locus>?\1?' | head -n 1`
     # verify whether Locus is set in config file
     if [ "$LOCUS" != "##Locus##" -a "$LOCUS" != "" ] ; then
 	db_set ${pkg}/locus "$LOCUS"

Modified: trunk/packages/mlstdbnet/trunk/debian/postinst
===================================================================
--- trunk/packages/mlstdbnet/trunk/debian/postinst	2009-01-24 08:15:39 UTC (rev 3052)
+++ trunk/packages/mlstdbnet/trunk/debian/postinst	2009-01-25 08:23:09 UTC (rev 3053)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # postinst script for agdbnet/mlstdbnet
 
-set -e
+set -ex
 
 pkg=mlstdbnet
 




More information about the debian-med-commit mailing list