Am 01.06.2013 14:33, schrieb Arno Töll: >> Can you rather try if this example fixes your problem: >> http://paste.debian.net/7957/?
> COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) > [...] elif [ "$COMMON_STATE" = "installed" ] ; then I'm not sure if that works. What happens, if the (my) package gets configured before apache2? I tried to install "emacs23-common" (big package) and dpkg-query returned the following: gawain@laptop:~$ dpkg-query -f '${Status}' -W 'emacs23-common' 2>/dev/null gawain@laptop:~$ dpkg-query -f '${Status}' -W 'emacs23-common' 2>/dev/null install reinstreq half-installed gawain@laptop:~$ dpkg-query -f '${Status}' -W 'emacs23-common' 2>/dev/null install reinstreq unpacked gawain@laptop:~$ dpkg-query -f '${Status}' -W 'emacs23-common' 2>/dev/null install ok unpacked gawain@laptop:~$ dpkg-query -f '${Status}' -W 'emacs23-common' 2>/dev/null install ok installed gawain@laptop:~$ If i'm not using depends, its not garanteed, that apache2 is configured before my package, right? If the new package (mine) gets configured before apache2 (alphabetical order or whatever reasons) the above check would return false and the apache2.2 code would wrongly be skiped, wouldnt it? -- MfG, Christian Welzel GPG-Key: pub 4096R/5117E119 2011-09-19 Fingerprint: 3688 337C 0D3E 3725 94EC E401 8D52 CDE9 5117 E119 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org