Skip to content

Commit

Permalink
fix softdeps not being appended
Browse files Browse the repository at this point in the history
Signed-off-by: Zen <z@pyl.onl>
  • Loading branch information
desultory committed Nov 17, 2024
1 parent 862085a commit 52aa8e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ugrd/kmod/kmod.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "desultory"
__version__ = "3.0.5"
__version__ = "3.0.6"

from pathlib import Path
from subprocess import run
Expand Down Expand Up @@ -73,7 +73,9 @@ def _get_kmod_info(self, module: str):
else:
module_info["depends"] = _normalize_kmod_name([line.split()[1]])
elif line.startswith("softdep:"):
module_info["softdep"] = line.split()[2::2]
if "softdep" not in module_info:
module_info["softdep"] = []
module_info["softdep"].append(line.split()[2::2])
elif line.startswith("firmware:"):
# Firmware is a list, so append to it, making sure it exists first
if "firmware" not in module_info:
Expand Down

0 comments on commit 52aa8e9

Please sign in to comment.