diff options
author | damien <damien@mandriva.com> | 2000-11-28 16:56:52 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2000-11-28 16:56:52 +0000 |
commit | 0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7 (patch) | |
tree | 33f7ac905998f9ad6d85090f777ee4c0d0c67032 /perl-install/c/stuff.pm | |
parent | d5c526273db473a7d87a26000585900fc10dda7d (diff) | |
download | drakx-backup-do-not-use-topic/unlabeled-1.1.1.tar drakx-backup-do-not-use-topic/unlabeled-1.1.1.tar.gz drakx-backup-do-not-use-topic/unlabeled-1.1.1.tar.bz2 drakx-backup-do-not-use-topic/unlabeled-1.1.1.tar.xz drakx-backup-do-not-use-topic/unlabeled-1.1.1.zip |
branch to build the firewall install.topic/unlabeled-1.1.1
Diffstat (limited to 'perl-install/c/stuff.pm')
-rw-r--r-- | perl-install/c/stuff.pm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm index ad5cf316d..0cb3e99f3 100644 --- a/perl-install/c/stuff.pm +++ b/perl-install/c/stuff.pm @@ -1,4 +1,4 @@ -package c::stuff; +package c::stuff; # $Id$ use strict; use vars qw($VERSION @ISA); @@ -10,11 +10,9 @@ $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()); @@ -23,7 +21,10 @@ 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; |