[arch-commits] Commit in kdeadmin/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Mon Nov 21 22:18:24 UTC 2011


    Date: Monday, November 21, 2011 @ 17:18:24
  Author: andrea
Revision: 143042

Fix the python shebang

Modified:
  kdeadmin/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-21 17:38:43 UTC (rev 143041)
+++ PKGBUILD	2011-11-21 22:18:24 UTC (rev 143042)
@@ -73,6 +73,9 @@
 	cd $srcdir/build/system-config-printer-kde
 	make DESTDIR=$pkgdir install
 
-    # Use the python2 executable
-    find ${pkgdir} -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
+        # Use the python2 executable
+        sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+          "${pkgdir}"/usr/share/apps/system-config-printer-kde/{system-config-printer-kde,authconn}.py
+        sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+          "${pkgdir}"/usr/share/apps/system-config-printer-kde/pysmb.py
 }




More information about the arch-commits mailing list