public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH python-single-r1 2/2] Example use of python_fix_shebang() (xen-tools).
Date: Sun, 16 Dec 2012 23:52:10 +0100	[thread overview]
Message-ID: <1355698330-15660-2-git-send-email-mgorny@gentoo.org> (raw)
In-Reply-To: <1355698330-15660-1-git-send-email-mgorny@gentoo.org>

---
 gx86/app-emulation/xen-tools/xen-tools-4.2.0-r2.ebuild | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gx86/app-emulation/xen-tools/xen-tools-4.2.0-r2.ebuild b/gx86/app-emulation/xen-tools/xen-tools-4.2.0-r2.ebuild
index a3436ae..8de669a 100644
--- a/gx86/app-emulation/xen-tools/xen-tools-4.2.0-r2.ebuild
+++ b/gx86/app-emulation/xen-tools/xen-tools-4.2.0-r2.ebuild
@@ -240,11 +240,7 @@ src_install() {
 		XEN_PYTHON_NATIVE_INSTALL=y install-tools
 
 	# Fix the remaining Python shebangs.
-	# TODO: add an appropriate func to python-single-r1.
-	sed -e "1s:python:${EPYTHON}:" \
-		-i "${ED}"usr/sbin/{xenmon.py,xen-ringwatch} || die 'shebang sed failed'
-	find "${D}$(python_get_sitedir)" -name '*.py' \
-		-exec sed -e "1s:python:${EPYTHON}:" -i {} + || die 'shebang find+sed failed'
+	python_fix_shebang "${ED}"
 
 	# Remove RedHat-specific stuff
 	rm -rf "${ED}"tmp || die
-- 
1.8.0.2



      reply	other threads:[~2012-12-16 22:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16 22:52 [gentoo-python] [PATCH python-single-r1 1/2] Introduce python_fix_shebang() for Python scripts in single-r1 Michał Górny
2012-12-16 22:52 ` Michał Górny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355698330-15660-2-git-send-email-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=python@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox