aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-26 04:36:29 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-26 04:36:29 +0100
commitba8583f89f50ecd5023d691b96373deb1d2fd6aa (patch)
treeff1fef692f288a3956cee39ebc23d125f381d0a1
parent960ee3a99d9323d114ebb424503d33b8b966bb7f (diff)
downloadsbotools2-ba8583f89f50ecd5023d691b96373deb1d2fd6aa.tar.xz
Properly remove -compat32 package directories
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 91bbfa7..d5796f2 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -895,6 +895,14 @@ sub make_clean {
}
remove_tree("$tmpd/package-$args{SBO}") if
-d "$tmpd/package-$args{SBO}";
+ if ($args{SBO} =~ /^(.+)-compat32$/) {
+ my $pkg_name = $1;
+ remove_tree("/tmp/package-$args{SBO}") if
+ not defined $env_tmp and
+ -d "/tmp/package-$args{SBO}";
+ remove_tree("$tmpd/$pkg_name") if
+ -d "$tmpd/$pkg_name";
+ }
return 1;
}