[26058] in Source-Commits
Re: /svn/athena r25368 - trunk/debathena/config/cupsys-config/debian
daemon@ATHENA.MIT.EDU (Jonathan Reed)
Wed Aug 10 18:00:01 2011
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <alpine.DEB.2.00.1108101758110.9320@tyger.mit.edu>
Date: Wed, 10 Aug 2011 17:59:47 -0400
Cc: source-commits@mit.edu
Message-Id: <AB1A77C3-5420-4D17-97FB-5D99B8D2E46B@mit.edu>
To: Geoffrey Thomas <geofft@mit.edu>
Content-Transfer-Encoding: 8bit
I did. I was too busy hating CUPS. Committed in r25369.
On Aug 10, 2011, at 5:58 PM, Geoffrey Thomas wrote:
> Did you want to use $DEFAULT_PRINTER or something?
>
> --
> Geoffrey Thomas
> geofft@mit.edu
>
> On Wed, 10 Aug 2011, Jonathan D Reed wrote:
>
>> Author: jdreed
>> Date: 2011-08-10 17:56:31 -0400 (Wed, 10 Aug 2011)
>> New Revision: 25368
>>
>> Modified:
>> trunk/debathena/config/cupsys-config/debian/changelog
>> trunk/debathena/config/cupsys-config/debian/configure-athena-printers
>> Log:
>> In cupsys-config:
>> * Set the new printer as default if there isn't already a default (Trac:
>> #1017)
>>
>>
>> Modified: trunk/debathena/config/cupsys-config/debian/changelog
>> ===================================================================
>> --- trunk/debathena/config/cupsys-config/debian/changelog 2011-08-10 20:49:05 UTC (rev 25367)
>> +++ trunk/debathena/config/cupsys-config/debian/changelog 2011-08-10 21:56:31 UTC (rev 25368)
>> @@ -1,3 +1,10 @@
>> +debathena-cupsys-config (1.16) unstable; urgency=low
>> +
>> + * Set the new printer as default if there isn't already a default (Trac:
>> + #1017)
>> +
>> + -- Jonathan Reed <jdreed@mit.edu> Wed, 10 Aug 2011 17:56:04 -0400
>> +
>> debathena-cupsys-config (1.15) unstable; urgency=low
>>
>> * Bump Conflicts statement for new cluster-cups-config
>>
>> Modified: trunk/debathena/config/cupsys-config/debian/configure-athena-printers
>> ===================================================================
>> --- trunk/debathena/config/cupsys-config/debian/configure-athena-printers 2011-08-10 20:49:05 UTC (rev 25367)
>> +++ trunk/debathena/config/cupsys-config/debian/configure-athena-printers 2011-08-10 21:56:31 UTC (rev 25368)
>> @@ -2,6 +2,7 @@
>>
>> PHAROS_PRINTERS="mitprint"
>> ATHENA_PRINTERS=
>> +DEFAULT_PRINTER="mitprint"
>> PRLIST="/var/lib/debathena-cupsys-config.added_printers"
>>
>> add_printers() {
>> @@ -28,6 +29,15 @@
>> echo "FAILED to add Athena printer $a"
>> fi
>> done
>> + # Dear CUPS,
>> + # There exist return codes. Use them.
>> + # Love, Debathena
>> + if [ "$(lpstat -d)" = "no system default destination" ]; then
>> + lpadmin -d mitprint
>> + fi
>> + # We don't need to deal with this on uninstall. CUPS is
>> + # smart enough (for now, at least) to not retain a default when
>> + # the printer in question is deleted.
>> }
>>
>> del_printers() {
>>
>>