diff options
| author | Mystery Man <unknown@mandriva.org> | 2001-06-11 11:44:34 +0000 |
|---|---|---|
| committer | Mystery Man <unknown@mandriva.org> | 2001-06-11 11:44:34 +0000 |
| commit | 7507023403933bbd0d851a250a474f85ba6a89d2 (patch) | |
| tree | c212a6c0eae5ed2c9964c390ebb72970ec08fd08 /perl-install/c/stuff.pm | |
| parent | ab5559aaabd1167a18ac882e64d97c5adc0e7d03 (diff) | |
| download | drakx-topic/ppp.tar drakx-topic/ppp.tar.gz drakx-topic/ppp.tar.bz2 drakx-topic/ppp.tar.xz drakx-topic/ppp.zip | |
This commit was manufactured by cvs2svn to create branch 'ppp'.topic/ppp
Diffstat (limited to 'perl-install/c/stuff.pm')
| -rw-r--r-- | perl-install/c/stuff.pm | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm deleted file mode 100644 index 0121f2904..000000000 --- a/perl-install/c/stuff.pm +++ /dev/null @@ -1,32 +0,0 @@ -package c::stuff; # $Id$ - -use strict; -use vars qw($VERSION @ISA); - -require DynaLoader; - -@ISA = qw(DynaLoader); -$VERSION = '0.01'; - -bootstrap c::stuff $VERSION; - -sub from_utf8 { iconv($_[0], "utf-8", standard_charset()) } - -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); -} - -1; |
