[23369] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23023 - trunk/debathena/config/cupsys-config/debian

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Thu Jun 12 16:15:12 2008

Date: Thu, 12 Jun 2008 16:14:41 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200806122014.QAA13828@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-06-12 16:14:40 -0400 (Thu, 12 Jun 2008)
New Revision: 23023

Modified:
   trunk/debathena/config/cupsys-config/debian/changelog
   trunk/debathena/config/cupsys-config/debian/postinst
Log:
In cupsys-config:
  * Handle rename of cupsys to cups in Debian sid.


Modified: trunk/debathena/config/cupsys-config/debian/changelog
===================================================================
--- trunk/debathena/config/cupsys-config/debian/changelog	2008-06-11 23:42:37 UTC (rev 23022)
+++ trunk/debathena/config/cupsys-config/debian/changelog	2008-06-12 20:14:40 UTC (rev 23023)
@@ -1,3 +1,9 @@
+debathena-cupsys-config (1.2) unstable; urgency=low
+
+  * Handle rename of cupsys to cups in Debian sid.
+
+ -- Greg Hudson <ghudson@mit.edu>  Thu, 12 Jun 2008 16:14:25 -0400
+
 debathena-cupsys-config (1.1) unstable; urgency=low
 
   * Depend on cupsys-bsd, mostly as a way to restore cupsys-bsd and

Modified: trunk/debathena/config/cupsys-config/debian/postinst
===================================================================
--- trunk/debathena/config/cupsys-config/debian/postinst	2008-06-11 23:42:37 UTC (rev 23022)
+++ trunk/debathena/config/cupsys-config/debian/postinst	2008-06-12 20:14:40 UTC (rev 23023)
@@ -22,10 +22,12 @@
 
 case "$1" in
     configure)
+	# Handle Debian package name change from cupsys to cups.
+	[ -e /etc/init.d/cups ] && rcname=cups || rcname=cupsys
 	if hash invoke-rc.d; then
-	    invoke-rc.d cupsys restart
+	    invoke-rc.d $rcname restart
 	else
-	    /etc/init.d/cupsys restart
+	    /etc/init.d/$rcname restart
 	fi
     ;;
 


home help back first fref pref prev next nref lref last post