diff options
| author | PMR <pmr@pmr-lander> | 2018-11-06 07:37:21 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2018-11-06 07:37:21 +0000 |
| commit | 9aefc154b9346eecd96eb76149443ec653c1afb8 (patch) | |
| tree | 4533e28026f50fa19273f9609354513acc6bf773 /bin | |
| parent | f63d35019d46756c2381e5b6f9030617f44c1e9f (diff) | |
| parent | 3c26964c70ef65dca668d62203efbcefee1edb35 (diff) | |
Merge #358312 from ~sylvain-pineau/plainbox-provider-checkbox:fix-1779080
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/dkms_info | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/dkms_info b/bin/dkms_info index ae9a9972..9b36a282 100755 --- a/bin/dkms_info +++ b/bin/dkms_info @@ -87,7 +87,12 @@ def get_system_modaliases(): with io.open(os.path.join(root, name), 'rt', encoding='UTF-8') as stream: data = stream.read().strip() - (modalias_type, modalias_string) = data.split(":", 1) + pattern_array = data.split(":", 1) + if len(pattern_array) < 2: + _logger.warning( + "skip pattern {}, not a valid modalias".format(data)) + continue + (modalias_type, modalias_string) = pattern_array if modalias_type not in result: result[modalias_type] = [] |
