Ticket #1431: lsb_release.patch

File lsb_release.patch, 459 bytes (added by Samus_, 15 years ago)

proposed patch

  • sjhbuild/sysdeps.py

    diff --git a/sjhbuild/sysdeps.py b/sjhbuild/sysdeps.py
    index 225f17d..ad31b3c 100644
    a b def get_distribution(): 
    3939        _cached_dversion = _pipe_lower(['lsb_release', '-rs'])
    4040
    4141    # pylint: disable-msg=W0704
    42     except OSError:
    43         pass
     42    except OSError as msg:
     43        sys.stderr.write('WARNING: lsb_release failed "%s"\n' % msg)
    4444
    4545    return _cached_dname, _cached_dversion
    4646