Skip to content

Commit

Permalink
net-misc/openvswitch: Fix python shebangs
Browse files Browse the repository at this point in the history
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=599368

Package-Manager: portage-2.3.2
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Dec 3, 2016
1 parent da045a0 commit c14d32c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
28 changes: 14 additions & 14 deletions net-misc/openvswitch/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Virtualization Project</name>
</maintainer>
<use>
<flag name="monitor">Build the Python and GUI dependent monitor applications</flag>
<flag name="pyside">Use <pkg>dev-python/pyside</pkg> instead of <pkg>dev-python/PyQt4</pkg> for Python/Qt-bindings when building with USE=monitor.</flag>
</use>
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Virtualization Project</name>
</maintainer>
<use>
<flag name="monitor">Build the Python and GUI dependent monitor applications</flag>
<flag name="pyside">Use <pkg>dev-python/pyside</pkg> instead of <pkg>dev-python/PyQt4</pkg> for Python/Qt-bindings when building with USE=monitor.</flag>
</use>
</pkgmetadata>
3 changes: 2 additions & 1 deletion net-misc/openvswitch/openvswitch-2.6.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ src_install() {

local SCRIPT
for SCRIPT in ovs-{pcap,parse-backtrace,dpctl-top,l3ping,tcpundump,test,vlan-test} bugtool/ovs-bugtool; do
python_replicate_script utilities/"${SCRIPT}"
sed -e '1s|^.*$|#!/usr/bin/python|' -i utilities/"${SCRIPT}" || die
python_foreach_impl python_doscript utilities/"${SCRIPT}"
done

# monitor is statically enabled for bug 596206
Expand Down

0 comments on commit c14d32c

Please sign in to comment.