projects
/
tools
/
obs-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c7c78
)
- don't die at compile time if Archive::Tar is not available
author
Michael Schroeder
<mls@suse.de>
Tue, 24 Apr 2012 09:56:20 +0000
(11:56 +0200)
committer
Michael Schroeder
<mls@suse.de>
Tue, 24 Apr 2012 09:57:00 +0000
(11:57 +0200)
Build/Arch.pm
patch
|
blob
|
history
diff --git
a/Build/Arch.pm
b/Build/Arch.pm
index
0b924f9
..
abcbf07
100644
(file)
--- 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 <mad.f3ka@gmail.com>