diff options
Diffstat (limited to 'perl-install/c/stuff.pm')
-rw-r--r-- | perl-install/c/stuff.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm index ab6fc4669..ad5cf316d 100644 --- a/perl-install/c/stuff.pm +++ b/perl-install/c/stuff.pm @@ -10,9 +10,11 @@ $VERSION = '0.01'; bootstrap c::stuff $VERSION; +1; + 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 headerGetEntry_string($h, RPMTAG_GROUP()); $q eq 'version' and return headerGetEntry_string($h, RPMTAG_VERSION()); @@ -21,10 +23,7 @@ sub headerGetEntry { $q eq 'description' and return 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 'filenames' and return headerGetEntry_string_list($h, RPMTAG_FILENAMES()); $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); } -1; |