diff options
author | Slack Coder <slackcoder@server.ky> | 2025-04-02 08:02:26 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-04-02 08:02:26 -0500 |
commit | 953e3e79326c4f8b223cf92870563d43b34de356 (patch) | |
tree | aa4fec2983ef5de7e634bc87c19172911957ca54 | |
parent | b6437cbb4c057abdedbeaf017048b1bb8ec72d42 (diff) | |
download | sbotools2-953e3e79326c4f8b223cf92870563d43b34de356.tar.xz |
Fix sanity checks in sboinstall, sboupgrade
-rw-r--r-- | ChangeLog.md | 6 | ||||
-rwxr-xr-x | sboinstall | 2 | ||||
-rwxr-xr-x | sboupgrade | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index fb54889..4df2fa5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [Unreleased] + +### Fixed + + - Check existence of slackbuilds for all arguments in sboinstall and sboupgrade. Thanks pghvlaans! + ## [2.9.0] ### Added @@ -142,7 +142,7 @@ my %locations = get_sbo_locations($build_queue); for my $sbo (@$build_queue) { next if $inst_names{$sbo}; - if (not $locations{$sbo} and in(@ARGV, $sbo)) { + if (not $locations{$sbo} and in($sbo, @ARGV)) { usage_error("Unable to locate $sbo in the SlackBuilds.org tree.") } if ($compat32) { @@ -118,7 +118,7 @@ for my $sbo (@sbos) { my $name = $sbo; $name =~ s/-compat32//; $locations{$sbo} = get_sbo_location($name); - if (not $locations{$sbo} and in(@ARGV, $sbo)) { + if (not $locations{$sbo} and in($sbo, @ARGV)) { usage_error("Unable to locate $sbo in the SlackBuilds.org tree."); } if ($sbo =~ /-compat32$/) { |