aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-30 00:21:26 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-30 00:21:26 +0200
commit305c754d66a1dce55526c582848555213e1617ad (patch)
treed84179053a60cd9a57db1c3fdfd2df70bf11f113 /SBO-Lib/lib
parent12ab1fe24d133f25ecf32ab66fbf99432a4e346d (diff)
downloadsbotools-305c754d66a1dce55526c582848555213e1617ad.tar.xz
SBO::Lib::Build: perform_sbo should change back from the SBo dir after building
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib/Build.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Build.pm b/SBO-Lib/lib/SBO/Lib/Build.pm
index 2a39ee6..519d4b1 100644
--- 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