sbotools2

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

commit 305c754d66a1dce55526c582848555213e1617ad
parent 12ab1fe24d133f25ecf32ab66fbf99432a4e346d
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Tue, 30 Aug 2016 00:21:26 +0200

SBO::Lib::Build: perform_sbo should change back from the SBo dir after building

Diffstat:
MSBO-Lib/lib/SBO/Lib/Build.pm | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/SBO-Lib/lib/SBO/Lib/Build.pm b/SBO-Lib/lib/SBO/Lib/Build.pm @@ -17,6 +17,7 @@ use File::Copy; # copy() and move() use File::Path qw/ make_path remove_tree /; use File::Temp qw/ tempdir tempfile /; use Tie::File; +use Cwd; our @EXPORT_OK = qw{ do_convertpkg @@ -486,8 +487,10 @@ sub perform_sbo { return $fail, undef, $exit if $exit; # run the slackbuild, grab its exit status, revert our changes + my $cwd = getcwd(); chdir $location; my ($out, $ret) = run_tee($cmd); + chdir $cwd; revert_slackbuild("$location/$sbo.SlackBuild"); # return error now if the slackbuild didn't exit 0