sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 953e3e79326c4f8b223cf92870563d43b34de356
parent b6437cbb4c057abdedbeaf017048b1bb8ec72d42
Author: Slack Coder <slackcoder@server.ky>
Date:   Wed,  2 Apr 2025 08:02:26 -0500

Fix sanity checks in sboinstall, sboupgrade

Diffstat:
MChangeLog.md | 6++++++
Msboinstall | 2+-
Msboupgrade | 2+-
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git 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 diff --git a/sboinstall b/sboinstall @@ -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) { diff --git a/sboupgrade b/sboupgrade @@ -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$/) {