diff options
author | Francois Pons <fpons@mandriva.com> | 2002-09-10 11:10:56 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-09-10 11:10:56 +0000 |
commit | 60cc44bd4502a9b4cf0da46ea95925fe72154522 (patch) | |
tree | 19336478a488f7e0cfe29f1bc862ba387fb00a41 /perl-install | |
parent | f874dc71a41cd323cd3cb273ed448e5db87f3056 (diff) | |
download | drakx-60cc44bd4502a9b4cf0da46ea95925fe72154522.tar drakx-60cc44bd4502a9b4cf0da46ea95925fe72154522.tar.gz drakx-60cc44bd4502a9b4cf0da46ea95925fe72154522.tar.bz2 drakx-60cc44bd4502a9b4cf0da46ea95925fe72154522.tar.xz drakx-60cc44bd4502a9b4cf0da46ea95925fe72154522.zip |
removed old code no more used.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/c/stuff.pm | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/perl-install/c/stuff.pm b/perl-install/c/stuff.pm index 918abee6c..459b827c7 100644 --- a/perl-install/c/stuff.pm +++ b/perl-install/c/stuff.pm @@ -13,22 +13,4 @@ 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; |