Skip to content

Commit

Permalink
fix wrong type for holds
Browse files Browse the repository at this point in the history
Throws the rather unhelpful

    Not an ARRAY reference at /usr/sbin/install_packages line 207, line 317.

because it's a hash instead of an array.

Ref: #116
  • Loading branch information
behrmann authored and Mrfai committed Feb 23, 2023
1 parent 1163c39 commit 129cb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/install_packages
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ foreach $atype (@commands) {
my $packlist = join(' ',@{$pkglist});

if ($atype eq "hold") {
my $hold = join " hold\n", @{$list{hold}}, "";
my $hold = join " hold\n", @{$list{hold}{$pkgopt}}, "";
execute("echo \"$hold\" | $rootcmd $command{hold}");
next;
}
Expand Down

0 comments on commit 129cb7e

Please sign in to comment.