From 858f92b7f344ec141d6f2f4ae1f9302318ee30c0 Mon Sep 17 00:00:00 2001 From: rjray Date: Mon, 5 Jun 2000 08:10:32 +0000 Subject: [PATCH] Removed more inapplicable constants, and documented some others CVS patchset: 3811 CVS date: 2000/06/05 08:10:32 --- Perl-RPM/RPM/Constants.pm | 341 +++++++--------------------------------------- Perl-RPM/RPM/Constants.xs | 338 ++------------------------------------------- 2 files changed, 65 insertions(+), 614 deletions(-) diff --git a/Perl-RPM/RPM/Constants.pm b/Perl-RPM/RPM/Constants.pm index 6a25ad4..e27ad81 100644 --- a/Perl-RPM/RPM/Constants.pm +++ b/Perl-RPM/RPM/Constants.pm @@ -5,7 +5,7 @@ # ############################################################################### # -# $Id: Constants.pm,v 1.1 2000/05/27 03:54:14 rjray Exp $ +# $Id: Constants.pm,v 1.2 2000/06/05 08:10:32 rjray Exp $ # # Description: Constants for the RPM package # @@ -27,7 +27,7 @@ use RPM; @ISA = qw(Exporter); $VERSION = $RPM::VERSION; -$revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r }; +$revision = do { my @r=(q$Revision: 1.2 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r }; @EXPORT_OK = qw( ADD_SIGNATURE @@ -40,7 +40,6 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r INSTALL_NOORDER INSTALL_PERCENT INSTALL_UPGRADE - NEW_SIGNATURE QUERY_FOR_CONFIG QUERY_FOR_DOCS QUERY_FOR_DUMPFILES @@ -118,23 +117,6 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r RPMFILE_STATE_NORMAL RPMFILE_STATE_NOTINSTALLED RPMFILE_STATE_REPLACED - RPMLEAD_BINARY - RPMLEAD_MAGIC0 - RPMLEAD_MAGIC1 - RPMLEAD_MAGIC2 - RPMLEAD_MAGIC3 - RPMLEAD_SIZE - RPMLEAD_SOURCE - RPMMESS_ALTNAME - RPMMESS_BACKUP - RPMMESS_DEBUG - RPMMESS_ERROR - RPMMESS_FATALERROR - RPMMESS_NORMAL - RPMMESS_PREREQLOOP - RPMMESS_QUIET - RPMMESS_VERBOSE - RPMMESS_WARNING RPMPROB_FILTER_DISKSPACE RPMPROB_FILTER_FORCERELOCATE RPMPROB_FILTER_IGNOREARCH @@ -181,23 +163,17 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r RPMTAG_CONFLICTNAME RPMTAG_CONFLICTVERSION RPMTAG_COOKIE - RPMTAG_DEFAULTPREFIX RPMTAG_DESCRIPTION RPMTAG_DIRINDEXES RPMTAG_DIRNAMES RPMTAG_DISTRIBUTION - RPMTAG_DOCDIR RPMTAG_EPOCH - RPMTAG_EXCLUDE RPMTAG_EXCLUDEARCH RPMTAG_EXCLUDEOS - RPMTAG_EXCLUSIVE RPMTAG_EXCLUSIVEARCH RPMTAG_EXCLUSIVEOS - RPMTAG_EXTERNAL_TAG RPMTAG_FILEDEVICES RPMTAG_FILEFLAGS - RPMTAG_FILEGIDS RPMTAG_FILEGROUPNAME RPMTAG_FILEINODES RPMTAG_FILELANGS @@ -208,46 +184,21 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r RPMTAG_FILERDEVS RPMTAG_FILESIZES RPMTAG_FILESTATES - RPMTAG_FILEUIDS RPMTAG_FILEUSERNAME RPMTAG_FILEVERIFYFLAGS - RPMTAG_FIRSTFREE_TAG RPMTAG_GIF RPMTAG_GROUP - RPMTAG_HASH_BASE - RPMTAG_HASH_HAVAL_5_160 - RPMTAG_HASH_MD2 - RPMTAG_HASH_MD5 - RPMTAG_HASH_RIPEMD160 - RPMTAG_HASH_SHA1 - RPMTAG_HASH_TIGER192 RPMTAG_ICON - RPMTAG_INSTALLPREFIX RPMTAG_INSTALLTIME RPMTAG_INSTPREFIXES RPMTAG_LICENSE RPMTAG_NAME - RPMTAG_NOPATCH - RPMTAG_NOSOURCE RPMTAG_OBSOLETEFLAGS RPMTAG_OBSOLETENAME RPMTAG_OBSOLETEVERSION - RPMTAG_ORIGBASENAMES - RPMTAG_ORIGDIRINDEXES - RPMTAG_ORIGDIRNAMES RPMTAG_OS RPMTAG_PACKAGER RPMTAG_PATCH - RPMTAG_PK_BASE - RPMTAG_PK_DH - RPMTAG_PK_DSA - RPMTAG_PK_ECDSA - RPMTAG_PK_ELGAMAL_E - RPMTAG_PK_ELGAMAL_ES - RPMTAG_PK_ELLIPTIC - RPMTAG_PK_RSA_E - RPMTAG_PK_RSA_ES - RPMTAG_PK_RSA_S RPMTAG_POSTIN RPMTAG_POSTINPROG RPMTAG_POSTUN @@ -255,7 +206,6 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r RPMTAG_PREFIXES RPMTAG_PREIN RPMTAG_PREINPROG - RPMTAG_PREREQ RPMTAG_PREUN RPMTAG_PREUNPROG RPMTAG_PROVIDEFLAGS @@ -265,20 +215,18 @@ $revision = do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r RPMTAG_REQUIREFLAGS RPMTAG_REQUIRENAME RPMTAG_REQUIREVERSION + RPMTAG_ROOT RPMTAG_RPMVERSION RPMTAG_SIZE RPMTAG_SOURCE - RPMTAG_SOURCEPACKAGE RPMTAG_SOURCERPM RPMTAG_SUMMARY + RPMTAG_TRIGGERCONDS RPMTAG_TRIGGERFLAGS - RPMTAG_TRIGGERIN RPMTAG_TRIGGERINDEX RPMTAG_TRIGGERNAME - RPMTAG_TRIGGERPOSTUN RPMTAG_TRIGGERSCRIPTPROG RPMTAG_TRIGGERSCRIPTS - RPMTAG_TRIGGERUN RPMTAG_TRIGGERVERSION RPMTAG_URL RPMTAG_VENDOR @@ -387,7 +335,7 @@ RPM::Constants - Groups of RPM-defined symbols =head1 SYNOPSIS - use RPM::Constants qw(:rpmerr :rpmtypes); + use RPM::Constants qw(:rpmerr :rpmtype); =head1 DESCRIPTION @@ -397,7 +345,7 @@ may be of use to those developing with the B Perl bindings. =head1 GROUPS For ease of use and uderstanding (at last count, the total number of -constants was 293), the constants are broken up into several smaller groups: +constants was 232), the constants are broken up into several smaller groups: =head2 Header Tag Identifiers @@ -460,23 +408,23 @@ of the entry, in the respective order given above. =item RPMTAG_CONFLICTFLAGS -Not documented yet. - =item RPMTAG_CONFLICTNAME -Not documented yet. - =item RPMTAG_CONFLICTVERSION -Not documented yet. +These three items are used in conjunction to specify packages and/or +individual files which the package itself would conflict with. Of the three, +only B is required to have data in all elements of +the array. The other two wil have the same number of elements, though some +(or most) may be null. This is the same approach as is used to specify the +elements that the package obsoletes, those the package provides and those +the package requires (see below). =item RPMTAG_COOKIE -Not documented yet. - -=item RPMTAG_DEFAULTPREFIX - -Not documented yet. +A simple tag, a single text string, added at the time the RPM is created. +Generally, it is created from the hostname on which the package is built +and the UNIX C value at the time of packaging. =item RPMTAG_DESCRIPTION @@ -500,18 +448,10 @@ way of B above. Not documented yet. -=item RPMTAG_DOCDIR - -Not documented yet. - =item RPMTAG_EPOCH Not documented yet. -=item RPMTAG_EXCLUDE - -Not documented yet. - =item RPMTAG_EXCLUDEARCH Not documented yet. @@ -520,10 +460,6 @@ Not documented yet. Not documented yet. -=item RPMTAG_EXCLUSIVE - -Not documented yet. - =item RPMTAG_EXCLUSIVEARCH Not documented yet. @@ -532,10 +468,6 @@ Not documented yet. Not documented yet. -=item RPMTAG_EXTERNAL_TAG - -Not documented yet. - =item RPMTAG_FILEDEVICES Not documented yet. @@ -544,13 +476,12 @@ Not documented yet. Not documented yet. -=item RPMTAG_FILEGIDS - -Not documented yet. - =item RPMTAG_FILEGROUPNAME -Not documented yet. +A string-array data field that contains the group ID (by name) that should +be used for setting group ownership of the files contained in the package. +There should be a one-to-one correspondance between this list and the list of +files in C. See also C. =item RPMTAG_FILEINODES @@ -588,20 +519,17 @@ Not documented yet. Not documented yet. -=item RPMTAG_FILEUIDS - -Not documented yet. - =item RPMTAG_FILEUSERNAME -Not documented yet. +A string-array data field that contains the user ID (by name) that should +be used for setting ownership of the files contained in the package. There +should be a one-to-one correspondance between this list and the list of +files in C. See also C. =item RPMTAG_FILEVERIFYFLAGS Not documented yet. -=item RPMTAG_FIRSTFREE_TAG - =item RPMTAG_GIF Not directly used by the B library. Likely intended to hold a GIF @@ -609,35 +537,10 @@ image that external software could make use of. See C below. =item RPMTAG_GROUP -Not documented yet. - -=item RPMTAG_HASH_BASE - -Not documented yet. - -=item RPMTAG_HASH_HAVAL_5_160 - -Not documented yet. - -=item RPMTAG_HASH_MD2 - -Not documented yet. - -=item RPMTAG_HASH_MD5 - -Not documented yet. - -=item RPMTAG_HASH_RIPEMD160 - -Not documented yet. - -=item RPMTAG_HASH_SHA1 - -Not documented yet. - -=item RPMTAG_HASH_TIGER192 - -Not documented yet. +A one-line text string that places the package within the overall hierarchy +of packages, using a UNIX-style format of denoting level with forward-slash +characters (C). Most packages will have at least two elements separated by +one such slash, though more are possible (as is a top-level name). =item RPMTAG_ICON @@ -645,10 +548,6 @@ Not directly used by the B library. Likely intended to hold an image of some neutral format that external software could make use of. See C below and C above. -=item RPMTAG_INSTALLPREFIX - -Not documented yet. - =item RPMTAG_INSTALLTIME Not documented yet. @@ -667,37 +566,19 @@ The name of the package. This is the first part of a triple used to uniquely identify a given package. It is used in conjunction with B and B, in that order. -=item RPMTAG_NOPATCH - -Not documented yet. - -=item RPMTAG_NOSOURCE - -Not documented yet. - =item RPMTAG_OBSOLETEFLAGS -Not documented yet. - =item RPMTAG_OBSOLETENAME -Not documented yet. - =item RPMTAG_OBSOLETEVERSION -Not documented yet. - -=item RPMTAG_ORIGBASENAMES - -Not documented yet. - -=item RPMTAG_ORIGDIRINDEXES - -Not documented yet. - -=item RPMTAG_ORIGDIRNAMES - -Not documented yet. +These three items are used in conjunction to specify packages and/or +individual files which the package itself obsoletes. Of the three, only +B is required to have data in all elements of the array. +The other two wil have the same number of elements, though some (or most) +may be null. This is the same approach as is used to specify the elements +that the package conflicts with, those the package provides and those the +package requires (see below). =item RPMTAG_OS @@ -711,46 +592,6 @@ Name of the group/company/individual who built the package. Not documented yet. -=item RPMTAG_PK_BASE - -Not documented yet. - -=item RPMTAG_PK_DH - -Not documented yet. - -=item RPMTAG_PK_DSA - -Not documented yet. - -=item RPMTAG_PK_ECDSA - -Not documented yet. - -=item RPMTAG_PK_ELGAMAL_E - -Not documented yet. - -=item RPMTAG_PK_ELGAMAL_ES - -Not documented yet. - -=item RPMTAG_PK_ELLIPTIC - -Not documented yet. - -=item RPMTAG_PK_RSA_E - -Not documented yet. - -=item RPMTAG_PK_RSA_ES - -Not documented yet. - -=item RPMTAG_PK_RSA_S - -Not documented yet. - =item RPMTAG_POSTIN Not documented yet. @@ -779,10 +620,6 @@ Not documented yet. Not documented yet. -=item RPMTAG_PREREQ - -Not documented yet. - =item RPMTAG_PREUN Not documented yet. @@ -793,15 +630,16 @@ Not documented yet. =item RPMTAG_PROVIDEFLAGS -Not documented yet. - =item RPMTAG_PROVIDENAME -Not documented yet. - =item RPMTAG_PROVIDEVERSION -Not documented yet. +These three items are used in conjunction to specify the specific files that +the package itself provides to other packages as possible dependancies. Of the +three, only B is required to have data in all elements +of the array. The other two wil have the same number of elements, though +some (or most) may be null. This three-part specification is also used to +itemize dependancies (see below) and obsoletions (see above). =item RPMTAG_RELEASE @@ -815,11 +653,16 @@ identification for each package. =item RPMTAG_REQUIREVERSION -These three items are used in conjunction to specify packages and/or individual -files on which the package itself depends. Of the three, only +These three items are used in conjunction to specify packages and/or +individual files on which the package itself depends. Of the three, only B is required to have data in all elements of the array. -The other two wil have the same number of elements, though some (or most) may -be null. +The other two wil have the same number of elements, though some (or most) +may be null. This is the same approach as is used to specify the elements +that the package provides and those the package obsoletes (see above). + +=item RPMTAG_ROOT + +Not documented yet. =item RPMTAG_RPMVERSION @@ -845,11 +688,11 @@ value. A one line summary description of the package. -=item RPMTAG_TRIGGERFLAGS +=item RPMTAG_TRIGGERCONDS Not documented yet. -=item RPMTAG_TRIGGERIN +=item RPMTAG_TRIGGERFLAGS Not documented yet. @@ -861,10 +704,6 @@ Not documented yet. Not documented yet. -=item RPMTAG_TRIGGERPOSTUN - -Not documented yet. - =item RPMTAG_TRIGGERSCRIPTPROG Not documented yet. @@ -873,10 +712,6 @@ Not documented yet. Not documented yet. -=item RPMTAG_TRIGGERUN - -Not documented yet. - =item RPMTAG_TRIGGERVERSION Not documented yet. @@ -1256,10 +1091,6 @@ Not documented yet. Not documented yet. -=item NEW_SIGNATURE - -Not documented yet. - =item QUERY_FOR_CONFIG Not documented yet. @@ -1332,74 +1163,6 @@ Not documented yet. Not documented yet. -=item RPMLEAD_BINARY - -Not documented yet. - -=item RPMLEAD_MAGIC0 - -Not documented yet. - -=item RPMLEAD_MAGIC1 - -Not documented yet. - -=item RPMLEAD_MAGIC2 - -Not documented yet. - -=item RPMLEAD_MAGIC3 - -Not documented yet. - -=item RPMLEAD_SIZE - -Not documented yet. - -=item RPMLEAD_SOURCE - -Not documented yet. - -=item RPMMESS_ALTNAME - -Not documented yet. - -=item RPMMESS_BACKUP - -Not documented yet. - -=item RPMMESS_DEBUG - -Not documented yet. - -=item RPMMESS_ERROR - -Not documented yet. - -=item RPMMESS_FATALERROR - -Not documented yet. - -=item RPMMESS_NORMAL - -Not documented yet. - -=item RPMMESS_PREREQLOOP - -Not documented yet. - -=item RPMMESS_QUIET - -Not documented yet. - -=item RPMMESS_VERBOSE - -Not documented yet. - -=item RPMMESS_WARNING - -Not documented yet. - =item RPMPROB_FILTER_DISKSPACE Not documented yet. diff --git a/Perl-RPM/RPM/Constants.xs b/Perl-RPM/RPM/Constants.xs index b5fbac6..2482b78 100644 --- a/Perl-RPM/RPM/Constants.xs +++ b/Perl-RPM/RPM/Constants.xs @@ -4,7 +4,7 @@ #include "RPM.h" -static char * const rcsid = "$Id: Constants.xs,v 1.2 2000/05/30 01:03:13 rjray Exp $"; +static char * const rcsid = "$Id: Constants.xs,v 1.3 2000/06/05 08:10:32 rjray Exp $"; static int not_here(char *s) @@ -106,12 +106,6 @@ constant(char *name, int arg) case 'M': break; case 'N': - if (strEQ(name, "NEW_SIGNATURE")) -#ifdef NEW_SIGNATURE - return NEW_SIGNATURE; -#else - goto not_there; -#endif break; case 'O': break; @@ -582,108 +576,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMLEAD_BINARY")) -#ifdef RPMLEAD_BINARY - return RPMLEAD_BINARY; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_MAGIC0")) -#ifdef RPMLEAD_MAGIC0 - return RPMLEAD_MAGIC0; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_MAGIC1")) -#ifdef RPMLEAD_MAGIC1 - return RPMLEAD_MAGIC1; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_MAGIC2")) -#ifdef RPMLEAD_MAGIC2 - return RPMLEAD_MAGIC2; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_MAGIC3")) -#ifdef RPMLEAD_MAGIC3 - return RPMLEAD_MAGIC3; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_SIZE")) -#ifdef RPMLEAD_SIZE - return RPMLEAD_SIZE; -#else - goto not_there; -#endif - if (strEQ(name, "RPMLEAD_SOURCE")) -#ifdef RPMLEAD_SOURCE - return RPMLEAD_SOURCE; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_ALTNAME")) -#ifdef RPMMESS_ALTNAME - return RPMMESS_ALTNAME; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_BACKUP")) -#ifdef RPMMESS_BACKUP - return RPMMESS_BACKUP; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_DEBUG")) -#ifdef RPMMESS_DEBUG - return RPMMESS_DEBUG; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_ERROR")) -#ifdef RPMMESS_ERROR - return RPMMESS_ERROR; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_FATALERROR")) -#ifdef RPMMESS_FATALERROR - return RPMMESS_FATALERROR; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_NORMAL")) -#ifdef RPMMESS_NORMAL - return RPMMESS_NORMAL; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_PREREQLOOP")) -#ifdef RPMMESS_PREREQLOOP - return RPMMESS_PREREQLOOP; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_QUIET")) -#ifdef RPMMESS_QUIET - return RPMMESS_QUIET; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_VERBOSE")) -#ifdef RPMMESS_VERBOSE - return RPMMESS_VERBOSE; -#else - goto not_there; -#endif - if (strEQ(name, "RPMMESS_WARNING")) -#ifdef RPMMESS_WARNING - return RPMMESS_WARNING; -#else - goto not_there; -#endif if (strEQ(name, "RPMPROB_FILTER_DISKSPACE")) #ifdef RPMPROB_FILTER_DISKSPACE return RPMPROB_FILTER_DISKSPACE; @@ -954,12 +846,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_DEFAULTPREFIX")) -#ifdef RPMTAG_DEFAULTPREFIX - return RPMTAG_DEFAULTPREFIX; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_DESCRIPTION")) #ifdef RPMTAG_DESCRIPTION return RPMTAG_DESCRIPTION; @@ -984,24 +870,12 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_DOCDIR")) -#ifdef RPMTAG_DOCDIR - return RPMTAG_DOCDIR; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_EPOCH")) #ifdef RPMTAG_EPOCH return RPMTAG_EPOCH; #else goto not_there; #endif - if (strEQ(name, "RPMTAG_EXCLUDE")) -#ifdef RPMTAG_EXCLUDE - return RPMTAG_EXCLUDE; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_EXCLUDEARCH")) #ifdef RPMTAG_EXCLUDEARCH return RPMTAG_EXCLUDEARCH; @@ -1014,12 +888,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_EXCLUSIVE")) -#ifdef RPMTAG_EXCLUSIVE - return RPMTAG_EXCLUSIVE; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_EXCLUSIVEARCH")) #ifdef RPMTAG_EXCLUSIVEARCH return RPMTAG_EXCLUSIVEARCH; @@ -1032,12 +900,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_EXTERNAL_TAG")) -#ifdef RPMTAG_EXTERNAL_TAG - return RPMTAG_EXTERNAL_TAG; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_FILEDEVICES")) #ifdef RPMTAG_FILEDEVICES return RPMTAG_FILEDEVICES; @@ -1050,12 +912,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_FILEGIDS")) -#ifdef RPMTAG_FILEGIDS - return RPMTAG_FILEGIDS; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_FILEGROUPNAME")) #ifdef RPMTAG_FILEGROUPNAME return RPMTAG_FILEGROUPNAME; @@ -1116,12 +972,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_FILEUIDS")) -#ifdef RPMTAG_FILEUIDS - return RPMTAG_FILEUIDS; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_FILEUSERNAME")) #ifdef RPMTAG_FILEUSERNAME return RPMTAG_FILEUSERNAME; @@ -1134,12 +984,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_FIRSTFREE_TAG")) -#ifdef RPMTAG_FIRSTFREE_TAG - return RPMTAG_FIRSTFREE_TAG; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_GIF")) #ifdef RPMTAG_GIF return RPMTAG_GIF; @@ -1152,60 +996,12 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_HASH_BASE")) -#ifdef RPMTAG_HASH_BASE - return RPMTAG_HASH_BASE; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_HAVAL_5_160")) -#ifdef RPMTAG_HASH_HAVAL_5_160 - return RPMTAG_HASH_HAVAL_5_160; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_MD2")) -#ifdef RPMTAG_HASH_MD2 - return RPMTAG_HASH_MD2; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_MD5")) -#ifdef RPMTAG_HASH_MD5 - return RPMTAG_HASH_MD5; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_RIPEMD160")) -#ifdef RPMTAG_HASH_RIPEMD160 - return RPMTAG_HASH_RIPEMD160; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_SHA1")) -#ifdef RPMTAG_HASH_SHA1 - return RPMTAG_HASH_SHA1; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_HASH_TIGER192")) -#ifdef RPMTAG_HASH_TIGER192 - return RPMTAG_HASH_TIGER192; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_ICON")) #ifdef RPMTAG_ICON return RPMTAG_ICON; #else goto not_there; #endif - if (strEQ(name, "RPMTAG_INSTALLPREFIX")) -#ifdef RPMTAG_INSTALLPREFIX - return RPMTAG_INSTALLPREFIX; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_INSTALLTIME")) #ifdef RPMTAG_INSTALLTIME return RPMTAG_INSTALLTIME; @@ -1230,18 +1026,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_NOPATCH")) -#ifdef RPMTAG_NOPATCH - return RPMTAG_NOPATCH; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_NOSOURCE")) -#ifdef RPMTAG_NOSOURCE - return RPMTAG_NOSOURCE; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_OBSOLETEFLAGS")) #ifdef RPMTAG_OBSOLETEFLAGS return RPMTAG_OBSOLETEFLAGS; @@ -1260,24 +1044,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_ORIGBASENAMES")) -#ifdef RPMTAG_ORIGBASENAMES - return RPMTAG_ORIGBASENAMES; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_ORIGDIRINDEXES")) -#ifdef RPMTAG_ORIGDIRINDEXES - return RPMTAG_ORIGDIRINDEXES; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_ORIGDIRNAMES")) -#ifdef RPMTAG_ORIGDIRNAMES - return RPMTAG_ORIGDIRNAMES; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_OS")) #ifdef RPMTAG_OS return RPMTAG_OS; @@ -1296,66 +1062,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_PK_BASE")) -#ifdef RPMTAG_PK_BASE - return RPMTAG_PK_BASE; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_DH")) -#ifdef RPMTAG_PK_DH - return RPMTAG_PK_DH; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_DSA")) -#ifdef RPMTAG_PK_DSA - return RPMTAG_PK_DSA; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_ECDSA")) -#ifdef RPMTAG_PK_ECDSA - return RPMTAG_PK_ECDSA; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_ELGAMAL_E")) -#ifdef RPMTAG_PK_ELGAMAL_E - return RPMTAG_PK_ELGAMAL_E; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_ELGAMAL_ES")) -#ifdef RPMTAG_PK_ELGAMAL_ES - return RPMTAG_PK_ELGAMAL_ES; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_ELLIPTIC")) -#ifdef RPMTAG_PK_ELLIPTIC - return RPMTAG_PK_ELLIPTIC; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_RSA_E")) -#ifdef RPMTAG_PK_RSA_E - return RPMTAG_PK_RSA_E; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_RSA_ES")) -#ifdef RPMTAG_PK_RSA_ES - return RPMTAG_PK_RSA_ES; -#else - goto not_there; -#endif - if (strEQ(name, "RPMTAG_PK_RSA_S")) -#ifdef RPMTAG_PK_RSA_S - return RPMTAG_PK_RSA_S; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_POSTIN")) #ifdef RPMTAG_POSTIN return RPMTAG_POSTIN; @@ -1398,12 +1104,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_PREREQ")) -#ifdef RPMTAG_PREREQ - return RPMTAG_PREREQ; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_PREUN")) #ifdef RPMTAG_PREUN return RPMTAG_PREUN; @@ -1458,6 +1158,12 @@ constant(char *name, int arg) #else goto not_there; #endif + if (strEQ(name, "RPMTAG_ROOT")) +#ifdef RPMTAG_ROOT + return RPMTAG_ROOT; +#else + goto not_there; +#endif if (strEQ(name, "RPMTAG_RPMVERSION")) #ifdef RPMTAG_RPMVERSION return RPMTAG_RPMVERSION; @@ -1476,12 +1182,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_SOURCEPACKAGE")) -#ifdef RPMTAG_SOURCEPACKAGE - return RPMTAG_SOURCEPACKAGE; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_SOURCERPM")) #ifdef RPMTAG_SOURCERPM return RPMTAG_SOURCERPM; @@ -1494,15 +1194,15 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_TRIGGERFLAGS")) -#ifdef RPMTAG_TRIGGERFLAGS - return RPMTAG_TRIGGERFLAGS; + if (strEQ(name, "RPMTAG_TRIGGERCONDS")) +#ifdef RPMTAG_TRIGGERCONDS + return RPMTAG_TRIGGERCONDS; #else goto not_there; #endif - if (strEQ(name, "RPMTAG_TRIGGERIN")) -#ifdef RPMTAG_TRIGGERIN - return RPMTAG_TRIGGERIN; + if (strEQ(name, "RPMTAG_TRIGGERFLAGS")) +#ifdef RPMTAG_TRIGGERFLAGS + return RPMTAG_TRIGGERFLAGS; #else goto not_there; #endif @@ -1518,12 +1218,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_TRIGGERPOSTUN")) -#ifdef RPMTAG_TRIGGERPOSTUN - return RPMTAG_TRIGGERPOSTUN; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_TRIGGERSCRIPTPROG")) #ifdef RPMTAG_TRIGGERSCRIPTPROG return RPMTAG_TRIGGERSCRIPTPROG; @@ -1536,12 +1230,6 @@ constant(char *name, int arg) #else goto not_there; #endif - if (strEQ(name, "RPMTAG_TRIGGERUN")) -#ifdef RPMTAG_TRIGGERUN - return RPMTAG_TRIGGERUN; -#else - goto not_there; -#endif if (strEQ(name, "RPMTAG_TRIGGERVERSION")) #ifdef RPMTAG_TRIGGERVERSION return RPMTAG_TRIGGERVERSION; -- 2.7.4