diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-26 04:41:18 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-11-26 04:41:18 +0100 |
commit | 4b27ba92eb0d0b6dd7b8d9ea61f2a4d1ce260a91 (patch) | |
tree | a9be952a0a0848dcd74c4ca92d31450eca4e9c1d /SBO-Lib/lib/SBO | |
parent | 3fbc4104c833ba480752ef0e822d9d284a055e97 (diff) | |
download | sbotools2-4b27ba92eb0d0b6dd7b8d9ea61f2a4d1ce260a91.tar.xz |
Give convertpkg-compat32 the correct directory
Diffstat (limited to 'SBO-Lib/lib/SBO')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 0f67f1b..6d3a839 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -814,7 +814,8 @@ sub do_convertpkg { my $pkg = shift; my $tempfh = tempfile(DIR => $tempdir); my $fn = get_tmp_extfn($tempfh); - my $cmd = "/usr/sbin/convertpkg-compat32 -i $pkg -d $tmpd | tee $fn"; + my $c32tmpd = $env_tmp // '/tmp'; + my $cmd = "/usr/sbin/convertpkg-compat32 -i $pkg -d $c32tmpd | tee $fn"; if (system($cmd) != 0) { return "convertpkg-compt32 returned non-zero exit status\n", _ERR_CONVERTPKG; |