Package: phamm Version: 0.5.18-2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * debian/phamm.config: - fix incorrect use of dh_get that causes upgrade/install failures with odd error messages (LP: #655518) We thought you might be interested in doing the same. The RET value has "10 slapd/domain doesn't exist" if the value is missing otherwise. Cheers, Michael -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-22-generic (SMP w/4 CPU cores) Locale: LANG=en_DK.utf8, LC_CTYPE=en_DK.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u phamm-0.5.18/debian/phamm.config phamm-0.5.18/debian/phamm.config --- phamm-0.5.18/debian/phamm.config +++ phamm-0.5.18/debian/phamm.config @@ -48,10 +48,11 @@ else # For the domain really.argh.org we create the basedn # dc=really,dc=argh,dc=org with the dc entry dc: really - db_get slapd/domain || true - if [ -n "$RET" ]; then - basedn="dc=`echo $RET | sed 's/^\.//; s/\./,dc=/g'`" - fi + if db_get slapd/domain ; then + if [ -n "$RET" ]; then + basedn="dc=`echo $RET | sed 's/^\.//; s/\./,dc=/g'`" + fi + fi fi # ldapserver