From a2e54c02232e2b2788becf7fa13ec13b4258977d Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 24 Apr 2012 11:56:20 +0200 Subject: [PATCH] - don't die at compile time if Archive::Tar is not available --- Build/Arch.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Build/Arch.pm b/Build/Arch.pm index 0b924f9..abcbf07 100644 --- a/Build/Arch.pm +++ b/Build/Arch.pm @@ -2,8 +2,10 @@ package Build::Arch; use strict; use Digest::MD5; -use Data::Dumper; -use Archive::Tar; + +eval { require Archive::Tar; }; +*Archive::Tar::new = sub {die("Archive::Tar is not available\n")} unless defined &Archive::Tar::new; + # Archlinux support, based on the GSoC work of Nikolay Rysev -- 2.7.4