* debian/postinst, usr/bin/byobu-config, usr/bin/byobu-select-session,

usr/lib/byobu/include/ec2instancespricing.py: LP: #996559
  - use env for shebang in development tree
  - fix this up in the postinst
    + seems racy -- there's got to better way of handling this???
This commit is contained in:
Dustin Kirkland 2013-02-06 21:04:06 -06:00
commit 2bf8de5783
5 changed files with 11 additions and 3 deletions

5
debian/changelog vendored
View file

@ -12,6 +12,11 @@ byobu (5.31) unreleased; urgency=low
- use a smarter algorithm for estimating ec2 cost
- include ec2instancespricing.py from
https://github.com/erans/ec2instancespricing
* debian/postinst, usr/bin/byobu-config, usr/bin/byobu-select-session,
usr/lib/byobu/include/ec2instancespricing.py: LP: #996559
- use env for shebang in development tree
- fix this up in the postinst
+ seems racy -- there's got to better way of handling this???
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Jan 2013 02:21:15 -0600

3
debian/postinst vendored
View file

@ -12,6 +12,9 @@ else
rm -f /etc/profile.d/Z98-$PKG.sh
fi
# Replace the development tree's "/usr/bin/env python" shebang
sed -i -e "s:^#!/usr/bin/env python:#!/usr/bin/python:" /usr/bin/byobu-config /usr/bin/byobu-select-session /usr/lib/byobu/include/ec2instancespricing.py
# Clean up any old-school screen-profiles diversions of /usr/bin/screen
if [ -f /usr/bin/screen ] && [ -f /usr/bin/screen.real ]; then
divertpkg=$(dpkg-divert --listpackage /usr/bin/screen || true)

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#
# byobu-config
# Copyright (C) 2008 Canonical Ltd.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#
# byobu-select-session
# Copyright (C) 2010 Canonical Ltd.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#
# Copyright (c) 2012 Eran Sandler (eran@sandler.co.il), http://eran.sandler.co.il, http://forecastcloudy.net
#