* usr/bin/byobu-config: LP: #910638

- ensure that config dir exists before touching reload flag
This commit is contained in:
Dustin Kirkland 2012-01-08 20:23:49 -06:00
commit 5d2265af95
2 changed files with 10 additions and 3 deletions

2
debian/changelog vendored
View file

@ -34,6 +34,8 @@ byobu (5.2) unreleased; urgency=low
* usr/bin/byobu, usr/share/byobu/profiles/tmux: LP: #908766
- use screen-bce instead of screen-256color, to support background
colors correctly
* usr/bin/byobu-config: LP: #910638
- ensure that config dir exists before touching reload flag
[ Daniel Hahler ]
* usr/bin/byobu-ctrl-a, usr/share/byobu/profiles/tmux: LP: #910779

View file

@ -63,9 +63,14 @@ def ioctl_GWINSZ(fd): #### TABULATION FUNCTIONS
return cr
def reload_required():
f = open(RELOAD_FLAG,'w')
f.close()
commands.getoutput(RELOAD_CMD)
try:
if not os.path.exists(BYOBU_CONFIG_DIR):
os.makedirs(BYOBU_CONFIG_DIR, 0755)
f = open(RELOAD_FLAG,'w')
f.close()
commands.getoutput(RELOAD_CMD)
except:
True
def terminal_size(): ### decide on *some* terminal size
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2) # try open fds