diff options
Diffstat (limited to 'perl-install/c/stuff.pm')
| -rw-r--r-- | perl-install/c/stuff.pm | 22 | 
1 files changed, 3 insertions, 19 deletions
| diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm index d7f8db2cb..72b5b0bd3 100644 --- a/perl-install/c/stuff.pm +++ b/perl-install/c/stuff.pm @@ -1,4 +1,4 @@ -package c::stuff; # $Id$ +package c::stuff;  use strict;  use vars qw($VERSION @ISA); @@ -7,24 +7,8 @@ require DynaLoader;  @ISA = qw(DynaLoader);  $VERSION = '0.01'; +# perl_checker: EXPORT-ALL -bootstrap c::stuff $VERSION; - -sub headerGetEntry { -    my ($h, $q) = @_; -    $h or log::l("empty header in headerGetEntry"), return; -    $q eq 'name' and return headerGetEntry_string($h, RPMTAG_NAME()); -    $q eq 'group' and return from_utf8(headerGetEntry_string($h, RPMTAG_GROUP())); -    $q eq 'version' and return headerGetEntry_string($h, RPMTAG_VERSION()); -    $q eq 'release' and return headerGetEntry_string($h, RPMTAG_RELEASE()); -    $q eq 'summary' and return from_utf8(headerGetEntry_string($h, RPMTAG_SUMMARY())); -    $q eq 'description' and return from_utf8(headerGetEntry_string($h, RPMTAG_DESCRIPTION())); -    $q eq 'arch' and return headerGetEntry_string($h, RPMTAG_ARCH()); -    $q eq 'size' and return headerGetEntry_int($h, RPMTAG_SIZE()); -    $q eq 'obsoletes' and return headerGetEntry_string_list($h, RPMTAG_OBSOLETES()); -    $q eq 'requires' and return headerGetEntry_string_list($h, RPMTAG_REQUIRENAME()); -    $q eq 'fileflags' and return headerGetEntry_int_list($h, RPMTAG_FILEFLAGS()); -    $q eq 'filenames' and return headerGetEntry_filenames($h); -} +c::stuff->bootstrap($VERSION);  1; | 
