[Python-apps-commits] r9197 - in packages/sabnzbdplus/trunk/debian (2 files)

jcfp-guest at users.alioth.debian.org jcfp-guest at users.alioth.debian.org
Thu Nov 1 13:04:53 UTC 2012


    Date: Thursday, November 1, 2012 @ 13:04:50
  Author: jcfp-guest
Revision: 9197

Adjust init script regexp for dh_python2 shebang rewriting (691312)

Modified:
  packages/sabnzbdplus/trunk/debian/changelog
  packages/sabnzbdplus/trunk/debian/sabnzbdplus.init

Modified: packages/sabnzbdplus/trunk/debian/changelog
===================================================================
--- packages/sabnzbdplus/trunk/debian/changelog	2012-11-01 12:32:54 UTC (rev 9196)
+++ packages/sabnzbdplus/trunk/debian/changelog	2012-11-01 13:04:50 UTC (rev 9197)
@@ -1,3 +1,10 @@
+sabnzbdplus (0.7.4-2) experimental; urgency=low
+
+  * Init script: adjust regexp to handle the space inserted by
+    dh_python2's shebang rewriting. (Closes #691312)
+
+ -- JCF Ploemen (jcfp) <linux at jcf.pm>  Thu, 01 Nov 2012 13:52:10 +0100
+
 sabnzbdplus (0.7.4-1) experimental; urgency=low
 
   * New upstream release.

Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2012-11-01 12:32:54 UTC (rev 9196)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2012-11-01 13:04:50 UTC (rev 9197)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2008-2011 by JCF Ploemen <linux at jcf.pm>
+# Copyright (C) 2008-2012 by JCF Ploemen <linux at jcf.pm>
 # released under GPL, version 2 or later
 
 ################################################
@@ -31,7 +31,7 @@
 
 DESC="SABnzbd+ binary newsgrabber"
 DEFOPTS="--daemon"
-PYTHONEXEC="^$(sed -n '1s/^#\!\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' $DAEMON)"
+PYTHONEXEC="^$(sed -n '1s/^#\! \?\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' $DAEMON)"
 PIDFILE=/var/run/sabnzbdplus.pid
 SETTINGS_LOADED=FALSE
 




More information about the Python-apps-commits mailing list