[Pkg-mailman-hackers] ucf: Please provide a --silent option

Bernd S. Brentrup bsb@debian.org
Wed, 24 Mar 2004 00:04:32 +0100


--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: ucf
Version: 0.30
Severity: wishlist

We are using ucf to provide conffile like handling for translated
template files in mailman thusly:

! for lang in ${site_languages}; do
!   echo -n "Installing site language ${lang} "
!   mkdir -p ${mm_etc}/${lang}
!   for file in $(ls ${mm_dist}/${lang}); do
!     echo -n .
!     langfile=3D${lang}/${file}
!     ucf --debconf-ok --three-way ${mm_dist}/${langfile} ${mm_etc}/${langf=
ile} \
!       </dev/tty >/dev/tty
!     # Upon install ucf leaves a duplicate in .dpkg-dist (Bug #238730), re=
move it
!     cmp -s ${mm_etc}/${langfile} ${mm_etc}/${langfile}.dpkg-dist \
!       && rm ${mm_etc}/${langfile}.dpkg-dist
!   done
!   echo " done."
! done

As long as ucf doesn't install a file it is quiet, but when installing
a previously uninstalled language it is chatty about it's actions :(
Clearly redirecting stdout to /dev/null instead of /dev/tty is not an
option as we might need to prompt the user when encountering a
modified file.

A --silent option causing ucf to only produce output when user interaction
is required will be greatly appreciated.

As I still don't quite understand ucf - debconf interaction, I refrained
=66rom trying to provide a patch.

Regards
=2E Siggy

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.3-xfs-vaio
Locale: LANG=3DC, LC_CTYPE=3DC

-- debconf information excluded


--=20
gelesen auf #debian.de am 19.02.2004:
18:06:51 <Wulf> was gibt's denn fuer'n puzzle spiel wo ich ein foto hab
  und das in quadrate o.ae. aufgeteilt wird, die ich dann wieder richtig
  zusammensetzen muss?
18:07:09 <yath> Wulf: ReiserFS?
18:07:33 <Joey[tm]> Wulf, ich haette xpuzzle anstatt reiserfs gedacht,
  aber reiserfs ist spannender.

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAYMKA94B/SGO8KQcRAvIFAKDMP1s/r+4q8VrBYSY7TSNnNa/oDQCePYFx
ODBdJXX3wfCkqciNL/Y/kkI=
=DknS
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--