Changeset 2744

Show
Ignore:
Timestamp:
01/31/18 02:16:45 (4 months ago)
Author:
jwoithe
Message:

[PATCH 08/13] Let ffado-diag go on if static_info.txt is not installed.

From Nicolas Boulenguez.

The static_info.txt file contains locale- and architecture-dependent data.
It prevents reproducible builds, and should probably move to
/usr/lib/ARCH instead of /usr/share. Some distributors may want to remove
it from their packages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/tools/ffado-diag.in

    r2743 r2744  
    105105 
    106106    print (" Prerequisites (static at compile-time)...") 
    107     with open( "$PYTHONDIR/static_info.txt", "r" ) as f: 
     107    try: 
     108     with open( "$PYTHONDIR/static_info.txt", "r" ) as f: 
    108109      for line in f: 
    109110        line = line[:-1] 
    110111        if line is not "\n" and line.startswith("  "): 
    111112            print (line) 
     113    except: 
     114        print ("Failed to read $PYTHONDIR/static_info.txt.") 
    112115 
    113116    # libraw