aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2025-04-02 08:02:26 -0500
committerSlack Coder <slackcoder@server.ky>2025-04-02 08:02:26 -0500
commit953e3e79326c4f8b223cf92870563d43b34de356 (patch)
treeaa4fec2983ef5de7e634bc87c19172911957ca54
parentb6437cbb4c057abdedbeaf017048b1bb8ec72d42 (diff)
downloadsbotools2-953e3e79326c4f8b223cf92870563d43b34de356.tar.xz
Fix sanity checks in sboinstall, sboupgrade
-rw-r--r--ChangeLog.md6
-rwxr-xr-xsboinstall2
-rwxr-xr-xsboupgrade2
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
diff --git a/sboinstall b/sboinstall
index c2f2420..2029720 100755
--- 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
index c1363c2..1df4f6e 100755
--- 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$/) {