diff --git a/hplip.spec b/hplip.spec index c9c5045..ba65490 100644 --- a/hplip.spec +++ b/hplip.spec @@ -174,13 +174,16 @@ exit 0 %post -n libsane-hpaio /sbin/ldconfig -if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ +if [ -f /etc/sane.d/dll.conf ] && \ + ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ echo hpaio >> /etc/sane.d/dll.conf; \ fi +exit 0 %changelog * Mon Jun 26 2006 Tim Waugh - Patchlevel 1. +- Fixed libsane-hpaio %%post scriptlet (bug #196663). * Fri Jun 16 2006 Tim Waugh 1.6.6-2 - 1.6.6.