| 101 | |
| 102 | @exceptions_handler(Exception) |
| 103 | def print_libraries(binary): |
| 104 | |
| 105 | f_title = "|{:<30}|{:<10}|{:<16}|{:<22}|" |
| 106 | f_value = "|{:<30}|{:<10d}|{:<16}|{:<22}|" |
| 107 | print("== Libraries ==") |
| 108 | print(f_title.format("Name", "Timestamp", "Current Version", "Compatibility Version")) |
| 109 | for library in binary.libraries: |
| 110 | current_version_str = "{:d}.{:d}.{:d}".format(*library.current_version) |
| 111 | compatibility_version_str = "{:d}.{:d}.{:d}".format(*library.compatibility_version) |
| 112 | print(f_value.format( |
| 113 | library.name, |
| 114 | library.timestamp, |
| 115 | current_version_str, |
| 116 | compatibility_version_str)) |
| 117 | print("") |
| 118 | |
| 119 | @exceptions_handler(Exception) |
| 120 | def print_segments(binary): |