aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 16:00:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 16:00:39 +0000
commit0e762c47c7da3cf90553721aadaf5833cc33cca1 (patch)
treeba082704174c9f3e99dbaa4efcd13302fff6a048
parentb9bbc19a5dc9cf1643a131bb10bc855052fedf61 (diff)
downloadrpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar
rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.gz
rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.bz2
rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.xz
rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.zip
Make Pod::Usage optional, for dependency reasons
-rwxr-xr-xpackdrake7
1 files changed, 5 insertions, 2 deletions
diff --git a/packdrake b/packdrake
index 46c1aee..ab18931 100755
--- a/packdrake
+++ b/packdrake
@@ -2,14 +2,17 @@
use strict;
use packdrake;
-use Pod::Usage;
#- general information.
my $default_size = 400000;
my $default_ratio = 6;
sub usage () {
- pod2usage({ -verbose => 1 });
+ eval {
+ require Pod::Usage;
+ Pod::Usage->import();
+ pod2usage({ -verbose => 1 });
+ }
exit 0;
}