[Pkg-cups-devel] Proposed minor resilience mod for Etch cupsys-bsd.postinst

Martin Pitt mpitt at debian.org
Sun Nov 16 17:31:17 UTC 2008


hi Jo,

Jo Mills [2008-11-15 12:14 +0000]:
> I wondered if the following minor change might make the Etch
> 
>     /var/lib/dpkg/info/cupsys-bsd.postinst
>     
> script a little bit more resilient?  Might I propose that
> the line which says:
> 
>   printcap_file=`egrep '^Printcap ' /etc/cups/cupsd.conf | awk '{print $2}'`
> 
> becomes
> 
>   printcap_file=`egrep '^Printcap ' /etc/cups/cupsd.conf | awk '{print $2}' | uniq`
> 
> I know it shouldn't be needed, but I don't think it does any
> harm and it adds a little more robustness to the script.

Thanks for the suggestion. I just committed this instead:

-           printcap_file=`egrep '^Printcap ' /etc/cups/cupsd.conf | awk '{print $2}'`
+           printcap_file=`egrep '^Printcap ' /etc/cups/cupsd.conf | awk '{print $2}' | tail -n 1`


> Many many thanks for the all wonderful work you guys to do produce
> such great packages, I really do appreciate your efforts.

Thanks for your warm words, really appreciated!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Pkg-cups-devel mailing list