Skip to content

Commit 9f4fea3

Browse files
committed
fix for real
Signed-off-by: Zen <[email protected]>
1 parent 98adc97 commit 9f4fea3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ugrd/kmod/kmod.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.5.4'
2+
__version__ = '2.5.5'
33

44
from pathlib import Path
55
from subprocess import run
@@ -84,7 +84,7 @@ def _get_kmod_info(self, module: str):
8484
module_info['softdep'] = line.split()[2::2]
8585
elif line.startswith('firmware:'):
8686
# Firmware is a list, so append to it, making sure it exists first
87-
if 'firmware' not in module_info:
87+
oh wait i think i imssed if 'firmware' not in module_info:
8888
module_info['firmware'] = []
8989
module_info['firmware'] += line.split()[1:]
9090

@@ -204,7 +204,10 @@ def _process_kmod_dependencies(self, kmod: str) -> None:
204204
if modinfo['filename'] != '(builtin)': # But if it's ignored because it's built-in, that's fine
205205
raise DependencyResolutionError("[%s] Kernel module dependency is in ignore list: %s" % (kmod, dependency))
206206
self.logger.debug("[%s] Processing dependency: %s" % (kmod, dependency))
207-
_process_kmod_dependencies(self, dependency)
207+
try:
208+
_process_kmod_dependencies(self, dependency)
209+
except BuiltinModuleError as e:
210+
self.logger.debug(e)
208211
self['kernel_modules'] = dependency
209212

210213
if self['_kmod_modinfo'][kmod]['filename'] == '(builtin)':

0 commit comments

Comments
 (0)