Package: ucf
Version: 3.0043
Severity: normal
Tags: patch

  As I'm using a few diversion, I notice a syntax error in ucf while
running APT:
[...]
Setting up samba-common (2:4.13.13+dfsg-1~deb11u3) ...
/usr/bin/ucf: 444: [: missing ]
grep: ]: No such file or directory
[...]

Indeed, the code is:
divert_line=$(dpkg-divert --list "$dest_file")
if [ -n "$divert_line" ]; then
   if [ echo "$divert_line" | grep "^local" ]; then
       # local diversion; pick something not in the package namespace
       divert_package="LOCAL"
[...]

   if [ echo "$divert_line" | grep "^local" ]; then
should be changed into
   if echo "$divert_line" | grep -sq "^local"; then
or
   if [ "$(echo "$divert_line" | grep "^local")" ]; then

  Regards,
    Vincent



-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel

Kernel: Linux 5.16.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ucf depends on:
ii  coreutils       8.32-4.1
ii  debconf         1.5.79
ii  sensible-utils  0.0.17

ucf recommends no packages.

ucf suggests no packages.

-- debconf information:
* ucf/changeprompt: install_new
* ucf/changeprompt_threeway: merge_threeway
* ucf/show_diff:
* ucf/conflicts_found:
  ucf/title:

Reply via email to