aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-09-01 13:04:53 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-09-01 13:05:06 +0200
commit96e31aa9820b92d546f36d2e9e6d223706ee3af2 (patch)
treef77168394a2f5c7f20d547d1a4faeff585178524 /SBO-Lib/lib
parentd6d6094291e94d45b118d322fd4fc00631fe20f5 (diff)
downloadsbotools2-96e31aa9820b92d546f36d2e9e6d223706ee3af2.tar.xz
SBO::Lib::Readme: Fix user_prompt() behaviour and fix up tests for it
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib/Readme.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Readme.pm b/SBO-Lib/lib/SBO/Lib/Readme.pm
index a16bb49..c5fb95c 100644
--- a/SBO-Lib/lib/SBO/Lib/Readme.pm
+++ b/SBO-Lib/lib/SBO/Lib/Readme.pm
@@ -174,7 +174,7 @@ sub user_prompt {
my ($sbo, $location) = @_;
if (not defined $location) { usage_error("Unable to locate $sbo in the SlackBuilds.org tree."); }
my $readme = get_readme_contents($location);
- usage_error("Could not open README for $sbo.") unless defined $readme;
+ return "Could not open README for $sbo.", undef, _ERR_OPENFH if not defined $readme;
if (is_local($sbo)) { print "\nFound $sbo in local overrides.\n"; }
# check for user/group add commands, offer to run any found
my $user_group = get_user_group($readme);