tags 322669 patch thanks Marc Wilson <[EMAIL PROTECTED]> writes:
> Package: a2ps > Version: 1:4.13b-5 > Severity: important > The -5 package can no longer print to the default printer: Whoops, sorry, my fault. Namespaces are your friend. Here's a patch to fix it. --- debian/a2ps-lpr-wrapper.orig 2005-08-11 21:56:47.000000000 -0700 +++ debian/a2ps-lpr-wrapper 2005-08-11 21:57:36.000000000 -0700 @@ -4,7 +4,7 @@ # TEMP=`getopt -o d: -n 'a2ps-lpr-wrapper' -- "$@"` -PRINTER="" +a2ps_printer="" if [ $? != 0 ]; then echo "Terminating..." >&2; exit 1; fi @@ -13,7 +13,7 @@ while true ; do case "$1" in - -d) PRINTER=$2; shift 2 ;; + -d) a2ps_printer=$2; shift 2 ;; --) shift; break ;; *) echo "usage: a2ps-lpr-wrapper -d [printer] [files]"; exit 1 ;; esac @@ -21,10 +21,10 @@ # If /usr/bin/lp (from cupsys-client) exists, just use it. if [ -x /usr/bin/lp ]; then - if [ "x$PRINTER" != "x" ]; then d="-d $PRINTER"; else d=""; fi + if [ "x$a2ps_printer" != "x" ]; then d="-d $a2ps_printer"; else d=""; fi /usr/bin/lp $d "$@" else # In case /usr/bin/lp is not available, then fall back /usr/bin/lpr. -if [ "x$PRINTER" != "x" ]; then P="-P $PRINTER"; else P=""; fi +if [ "x$a2ps_printer" != "x" ]; then P="-P $a2ps_printer"; else P=""; fi /usr/bin/lpr $P "$@" fi -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]