Skip to content

Commit a97bce3

Browse files
authored
fix(dnf): use str starts-with for record type check in install_pkgs (#572)
Nushell's describe returns the full type signature for records ("record<key: type, ...>"), 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
1 parent 00a2696 commit a97bce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/dnf/dnf.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def install_pkgs [install: record]: nothing -> nothing {
517517
# Get all the entries that have a repo and/or packages specified as an object.
518518
let object_install_list = $install.packages
519519
| where {|pkg|
520-
($pkg | describe) == 'record'
520+
($pkg | describe) | str starts-with 'record'
521521
}
522522

523523
for $object_install in $object_install_list {

0 commit comments

Comments
 (0)