From e1d39f22a753d72af1fba87c9d6802ede4ded873 Mon Sep 17 00:00:00 2001 From: fromelicks <108532072+fromelicks@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:24:30 +0200 Subject: [PATCH] fix(dnf): use str starts-with for record type check in install_pkgs Nushell's describe returns the full type signature for records ("record"), not just "record". The equality check == 'record' is therefore always false, silently skipping all repo-specific package installs (terra, COPR, etc.). Fix matches the existing pattern already used in add_coprs. Closes #571 --- modules/dnf/dnf.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnf/dnf.nu b/modules/dnf/dnf.nu index 6da240de..9a269d60 100644 --- a/modules/dnf/dnf.nu +++ b/modules/dnf/dnf.nu @@ -517,7 +517,7 @@ def install_pkgs [install: record]: nothing -> nothing { # Get all the entries that have a repo and/or packages specified as an object. let object_install_list = $install.packages | where {|pkg| - ($pkg | describe) == 'record' + ($pkg | describe) | str starts-with 'record' } for $object_install in $object_install_list {