summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-07-21 16:17:21 +0000
committerMystery Man <unknown@mandriva.org>2002-07-21 16:17:21 +0000
commit44367b004bf899c07a6cc0ceec8b25e867996439 (patch)
treec5f60a00b24fba0db77ad255ca60ab80411a5f51 /perl-install/c/stuff.pm
parent38b509596410b559a4ba2718cbffa8ee65d81a6b (diff)
downloaddrakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.gz
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.bz2
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.xz
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_8_8mdk'.V1_1_8_8mdk
Diffstat (limited to 'perl-install/c/stuff.pm')
-rw-r--r--perl-install/c/stuff.pm34
1 files changed, 0 insertions, 34 deletions
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm
deleted file mode 100644
index 918abee6c..000000000
--- a/perl-install/c/stuff.pm
+++ /dev/null
@@ -1,34 +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 to_utf8 { iconv($_[0], standard_charset(), "utf-8") }
-
-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 'epoch' and return headerGetEntry_int($h, RPMTAG_EPOCH());
- $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;