Subject: ucf: --verbose changes return code
Package: ucf
Version: 3.0025+nmu2
Severity: normal

Hi, 

I was trying to debug a postinst script that calls ucf, and added '-v'
to the call.  This caused the postinst script to fail!

Here's the snippet from my script (actually it is a shell script invoked
from the postinst):

echo "next call: ucf --debconf-ok $fmgrConfigReplaceCfgFile 
$fmgrConfigReplaceOrigFile"
read foo
ucf -v --debconf-ok $fmgrConfigReplaceCfgFile $fmgrConfigReplaceOrigFile

(the script has "set -e") and here is the output

next call: ucf --debconf-ok /tmp/tctmp.5892/tfc5898/out/dvipdfmx.cfg 
/tmp/tmp.GcaJK8EHbW/dvipdfmx/dvipdfmx.cfg
foo
ucf: The new file is /tmp/tctmp.5892/tfc5898/out/dvipdfmx.cfg
ucf: The Destination file is /tmp/tmp.GcaJK8EHbW/dvipdfmx/dvipdfmx.cfg
ucf: The Source directory is /tmp/tctmp.5892/tfc5898/out
ucf: The State directory is /var/lib/ucf
ucf: Replace the old file is true
The hash file exists
egrep [[:space:]]\/tmp\/tmp\.GcaJK8EHbW\/dvipdfmx\/dvipdfmx\.cfg$ 
/var/lib/ucf/hashfile
ucf: The new file is /tmp/tctmp.5892/tfc5898/out/dvipdfmx.cfg
ucf: The Destination file is /tmp/tmp.GcaJK8EHbW/dvipdfmx/dvipdfmx.cfg
ucf: The Source directory is /tmp/tctmp.5892/tfc5898/out
ucf: The State directory is /var/lib/ucf
ucf: Replace the old file is true
The hash file exists
dpkg: error processing texlive-base (--configure):
 subprocess installed post-installation script returned error exit status 128
configured to not write apport reports
                                      Processing triggers for tex-common ...
texlive-base is not ready, delaying updmap-sys call
Building e-tex based formats --byhyphen 
/var/lib/texmf/tex/generic/config/language.def.
        This may take some time... done.
Errors were encountered while processing:
 texlive-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
[...]

("foo" is what I typed).  

Regards, Frank

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages ucf depends on:
ii  coreutils                     8.5-1      GNU core utilities
ii  debconf                       1.5.39     Debian configuration management sy

ucf recommends no packages.

ucf suggests no packages.

-- debconf information:
  ucf/changeprompt: keep_current
  ucf/conflicts_found:
  ucf/title:
  ucf/show_diff:
  ucf/changeprompt_threeway: keep_current

-- 
Frank Küster
Sprecher B90/Grüne OV Miltenberg und Umgebung
VCD Miltenberg, ADFC Aschaffenburg-Miltenberg
Debian Developer (TeXLive)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to