Gracefully deal with 'stty size' failures. Submitted upstream. --- pybugz-0.6.11/bugz.py 2006-09-02 14:35:37.000000000 +0200 +++ pybugz-0.6.11/bugz.py 2014-05-05 15:17:03.000000000 +0200 @@ -288,7 +288,12 @@ def get_cols(): stty = which('stty') if stty: row_cols = commands.getoutput("%s size" % stty) - rows, cols = map(int, row_cols.split()) + try: + rows, cols = map(int, row_cols.split()) + except: + # In some cases 'stty size' will just fail with + # "Inappropriate ioctl for device". + cols = DEFAULT_NUM_COLS return cols else: return DEFAULT_NUM_COLS 331b2853e2c'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/home.scm
AgeCommit message (Expand)Author
2024-03-222021-05-10maint: update-NEWS: Sort packages prior writing to the data file....* build-aux/update-NEWS.scm (main): Sort packages. Maxim Cournoyer
2021-04-232023-03-20home: 'home-environment-with-provenance' uses the HE location info....* gnu/home.scm (home-environment-with-provenance): Make `config-file` optional, with the default taken from the HE location info. Signed-off-by: Andrew Tropin <andrew@trop.in> Sergey Trofimov
2023-03-13home: Export home-environment-packages....* gnu/home.scm (home-environment-packages): Export procedure. Signed-off-by: Andrew Tropin <andrew@trop.in> Sergey Trofimov