diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-03 16:00:39 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-03 16:00:39 +0000 |
commit | 0e762c47c7da3cf90553721aadaf5833cc33cca1 (patch) | |
tree | ba082704174c9f3e99dbaa4efcd13302fff6a048 /packdrake | |
parent | b9bbc19a5dc9cf1643a131bb10bc855052fedf61 (diff) | |
download | rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.gz rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.bz2 rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.tar.xz rpmtools-0e762c47c7da3cf90553721aadaf5833cc33cca1.zip |
Make Pod::Usage optional, for dependency reasons
Diffstat (limited to 'packdrake')
-rwxr-xr-x | packdrake | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; } |