Package: lilypond-data
Version: 2.18.2-8
Followup-For: Bug #871631

Dear Maintainer,

/var/lib/dpkg/info/lilypond-data.postinst looks bogus:
|    if [ -d /usr/share/info/lilypond ] && [ ! -L /usr/share/info/lilypond ] \
|       && rmdir --ignore-fail-on-non-empty /usr/share/lilypond; then
|       (cd /usr/share/info; ln -s ../doc/lilypond/html/Documentation/user/ 
lilypond;)
|    fi;

$ ls -ld /usr/share/info/lilypond
drwxr-xr-x 260 root root 4096 Jul 17 06:51 /usr/share/info/lilypond

So the "if" evaluates to true, but what is that "rmdir" supposed to do?
Mine directory isn't empty.
So the "ln" tries do overwrite the directory.

BTW: Instead of the (cd;ln;) subshell construct, you can write
  ln -s ../doc/lilypond/html/Documentation/user/ /usr/share/info/lilypond

And you don't need to put semicolons at the end of the line - this isn't
C or Java, a simple line break is enough.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lilypond-data depends on:
ii  python                               2.7.13-2
ii  texinfo                              6.4.90.dfsg.1-1+b1
ii  texlive-binaries [texlive-base-bin]  2017.20170613.44572-5

Versions of packages lilypond-data recommends:
ii  lilypond  2.18.2-8

lilypond-data suggests no packages.

-- no debconf information

Reply via email to