diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-19 00:25:06 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-19 00:25:06 +0100 |
commit | 02e036d45e04dbad30d0e108b4d251e2c8fb84fb (patch) | |
tree | de7e4ca2af8618e46004a1adf47d01ecd5830458 /SBO-Lib | |
parent | ef360f8f5a457f643460a2d1308418767d292450 (diff) | |
download | sbotools2-02e036d45e04dbad30d0e108b4d251e2c8fb84fb.tar.xz |
Add check for package being made and tests for it. This fixes #35.
Diffstat (limited to 'SBO-Lib')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 22279e0..20f9f04 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -983,6 +983,7 @@ sub perform_sbo { # return error now if the slackbuild didn't exit 0 return "$sbo.SlackBuild return non-zero\n", undef, _ERR_BUILD if $out != 0; my $pkg = get_pkg_name($tempfh); + return "$sbo.SlackBuild didn't create a package\n", undef, _ERR_BUILD if not defined $pkg; my $src = get_src_dir($src_ls_fh); return $pkg, $src; } |