From 576a7e5919e3be9ab779864f078351bbe732f8fe Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 18 Dec 2012 01:51:37 +0000 Subject: merge 4 years old rpm-4.6 support patch from pixel git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@247 971eb68f-4bfb-0310-8326-d2484c010a4c --- rpmconstant/rpmconstant.h | 2 ++ rpmconstant/rpmh2tbl | 27 +++++++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/rpmconstant/rpmconstant.h b/rpmconstant/rpmconstant.h index 30f115e..5c01946 100644 --- a/rpmconstant/rpmconstant.h +++ b/rpmconstant/rpmconstant.h @@ -33,8 +33,10 @@ #include #include #include +#include #include #include +#include /** * A constant pair name/value diff --git a/rpmconstant/rpmh2tbl b/rpmconstant/rpmh2tbl index 8efa9aa..35b0e18 100755 --- a/rpmconstant/rpmh2tbl +++ b/rpmconstant/rpmh2tbl @@ -33,17 +33,9 @@ my @availlabletables; my %file_const = ( 'rpmlib.h' => { - '^(RPMDBI_[\w_]+)' => 'rpmdbi', - '^(RPMRC_[\w_]+)' => 'rpmRC', - '^(RPMFILE_[^(STATE_)][\w_]+)' => 'rpmfileAttrs', - '^(RPMFILE_STATE_[\w_]+)' => 'rpmfileState', '^(RPM_MACHTABLE_[\w_]+)' => 'rpm_machtable', - '^(RPMPROB_FILTER_[\w_]+)' => 'rpmprobFilterFlags', - '^(FA_[\w_]+)' => 'fileAction', - '^(PIPE|CDEV|XDIR|BDEV|REG|LINK|SOCK)$' => 'fileTypes', '^(INSTALL_[\w_]+)' => 'rpmInstallInterfaceFlags', '^(UNINSTALL_[\w_]+)' => 'rpmEraseInterfaceFlags', - '^(RPMSIGTAG_[\w_]+)' => 'rpmtagSignature', }, 'header.h' => { '^(HEADER_MAGIC_[\w_]+)' => 'hMagic', @@ -54,7 +46,6 @@ my %file_const = ( }, 'rpmcli.h' => { '^(RPMSIGN_[\w_]+)' => 'rpmSignFlags', - '^(VERIFY_[\w_]+)' => 'rpmVerifyFlags', }, 'rpmdb.h' => { '^(RPMMIRE_[\w_]+)' => 'rpmMireMode', @@ -65,6 +56,12 @@ my %file_const = ( 'rpmerr.h' => { '^(RPMERR_[\w_]+)' => 'rpmerrCode', }, + 'rpmfi.h' => { + '^(RPMFILE_[^(STATE_)][\w_]+)' => 'rpmfileAttrs', + '^(RPMFILE_STATE_[\w_]+)' => 'rpmfileState', + '^(PIPE|CDEV|XDIR|BDEV|REG|LINK|SOCK)$' => 'fileTypes', + '^(FA_[\w_]+)' => 'fileAction', + }, 'rpmlog.h' => { '^(RPMLOG_(?!PRI$|MAKEPRI$|FAC$|MASK$|UPTO$)[\w_]+)' => 'rpmlog', }, @@ -76,9 +73,13 @@ my %file_const = ( '^(RPMMESS_[\w_]+)' => 'rpmmess', }, 'rpmps.h' => { - '^(RPMPROB_[\w_]+)' => 'rpmProblemType', + '^(RPMPROB_FILTER_[\w_]+)' => 'rpmprobFilterFlags', + '^(RPMPROB_[^(FILTER_)][\w_]+)' => 'rpmProblemType', + }, 'rpmtag.h' => { + '^(RPMDBI_[\w_]+)' => 'rpmdbi', + '^(RPMSIGTAG_[\w_]+)' => 'rpmtagSignature', '^(RPMTAG_[\w_]+)' => 'rpmTag', '^(RPM_[\w]+)_TYPE$' => 'rpmTagType', }, @@ -91,6 +92,12 @@ my %file_const = ( '^(RPMTRANS_TYPE_[\w_]+)' => 'rpmtsType', '^(RPMTS_OP_[\w_]+)' => 'rpmtsOpX', }, + 'rpmtypes.h' => { + '^(RPMRC_[\w_]+)' => 'rpmRC', + }, + 'rpmvf.h' => { + '^(VERIFY_[\w_]+)' => 'rpmVerifyFlags', + }, ); my %tableprefix = ( -- cgit v1.2.1