[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#300159: tetex-extra: Fails to install (debconf-loadtemplates: command not found)



severity 300159 important
retitle 300159 ucf: assumes that debconf-loadtemplates is always there
tags 300159 patch
thanks

Joey, this just informs you that you can forget it, no problem with
debconf. 

Hilmar Preusse <hille42@web.de> wrote:

> On 18.03.05 Frank Küster (frank@debian.org) wrote:
>> 
>> ucf doesn't call it, either, it just sources
>> /usr/share/debconf/confmodule.

I didn't notice that testing and unstable have different versions.

> yes, that debconf-loadtemplates is in a if condition.

But not in the right one.  This patch is needed, of course an
alternative would be to depend on debconf-utils.

Regards, Frank

--- ucf-1.15/ucf.orig	2005-03-18 14:22:48.000000000 +0100
+++ ucf-1.15/ucf	2005-03-18 14:23:49.000000000 +0100
@@ -52,7 +52,10 @@
                 # Load out templates, just in case our template has
                 # not been loaded or the Debconf DB lost or corrupted
                 # since then.
-                debconf-loadtemplates ucf /var/lib/dpkg/info/ucf.templates
+                # Since debconf-loadtemplates is in debconf-utils, it need 
+                # not be installed
+                test -x "`which /usr/bin/debconf-loadtemplates`" && 
+                  debconf-loadtemplates ucf /var/lib/dpkg/info/ucf.templates || true
 	fi
 fi
 export DEBCONF_ALREADY_RUNNING


-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer



Reply to: