archlinux: no longer need to mangle shebang for python scripts

It's patched to python2 (where applicable) in the original sources.
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-24 00:26:38 +02:00
parent 3b0f80e19f
commit e8ef22b546
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -45,12 +45,6 @@ build() {
sed 's:/sbin/ip:ip:g' -i network/*
sed 's:/bin/grep:grep:g' -i network/*
# Force running all scripts with python2
sed 's:^#!/usr/bin/python.*:#!/usr/bin/python2:' -i misc/*
sed 's:^#!/usr/bin/env python.*:#!/usr/bin/env python2:' -i misc/*
sed 's:^#!/usr/bin/python.*:#!/usr/bin/python2:' -i qubes-rpc/*
sed 's:^#!/usr/bin/env python.*:#!/usr/bin/env python2:' -i qubes-rpc/*
# Fix for archlinux sbindir
sed 's:/usr/sbin/ntpdate:/usr/bin/ntpdate:g' -i qubes-rpc/sync-ntp-clock
sed 's:/usr/sbin/qubes-firewall:/usr/bin/qubes-firewall:g' -i vm-systemd/qubes-firewall.service