summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-07-08 16:15:40 +0200
committerMichael Schroeder <mls@suse.de>2014-07-08 16:15:40 +0200
commit46cdd602a769d1e973721fbb350e0833650960ab (patch)
treef7f844fbc654f8430060ced821ec43c2ec7305e4 /Build
parentda9f763ab54872fd6260c515147b3b105206a041 (diff)
Don't crash on startup if Achive::Tar is not available
Diffstat (limited to 'Build')
-rw-r--r--Build/LiveBuild.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/LiveBuild.pm b/Build/LiveBuild.pm
index cb6e2b7..d5bebcf 100644
--- a/Build/LiveBuild.pm
+++ b/Build/LiveBuild.pm
@@ -20,7 +20,9 @@
package Build::LiveBuild;
use strict;
-use Archive::Tar;
+
+eval { require Archive::Tar; };
+*Archive::Tar::new = sub {die("Archive::Tar is not available\n")} unless defined &Archive::Tar::new;
sub filter {
my ($content) = @_;