r12:
authorIvan Rako <Ivan.Rako@CARNet.hr>
Wed, 31 Oct 2007 09:09:57 +0000 (09:09 +0000)
committerIvan Rako <Ivan.Rako@CARNet.hr>
Wed, 31 Oct 2007 09:09:57 +0000 (09:09 +0000)
carnet-debconf-get [deleted file]
debian/control
install-carnet-debian

diff --git a/carnet-debconf-get b/carnet-debconf-get
deleted file mode 100644 (file)
index 3c619bf..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-set -e
-
-. /usr/share/debconf/confmodule
-
-db_get $1
-echo $RET
index 05c24cb..1286508 100644 (file)
@@ -8,5 +8,5 @@ Standards-Version: 3.6.1
 Package: carnet-debian
 Provides: carnet-debian-cn
 Architecture: all
-Depends: debconf, apt-cn
+Depends: debconf, apt-cn, carnet-tools-cn (>= 2.8)
 Description: Installer for CARNet Debian packages
index bdb8759..cbf57df 100644 (file)
@@ -2,7 +2,12 @@
 
 set -e
 
-packages="`carnet-debconf-get carnet-debian/packages 2>&1 | tr -d ','`"
+. /usr/share/debconf/confmodule
+. /usr/share/carnet-tools/functions.sh
+
+cp_db_get carnet-debian/packages
+
+packages="`echo $RET | tr -d ','`"
 
 if [ -z "$packages" ]; then
   echo "CN: No packages for install."