summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libzypp/libzypp/libzypp-rpm549.patch
blob: 8268a2d51d16b084423af9dea132c04c24e05575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit 6c47ad415246cc3a3edac2e1637106d330574c85
Author: Mark Hatle <mark.hatle@windriver.com>
Date:   Fri May 11 19:05:09 2012 -0500

    RpmHeader.cc: RPM 5.4.9 integration
    
    _RPMVSF_xxx - NODIGEST, NOSIGNATURES, NOHEADER, and NOPAYLOAD
    are now obsolete and no longer supported.
    
    Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

diff --git a/zypp/target/rpm/RpmHeader.cc b/zypp/target/rpm/RpmHeader.cc
index 1224ecd..c96dae6 100644
--- a/zypp/target/rpm/RpmHeader.cc
+++ b/zypp/target/rpm/RpmHeader.cc
@@ -230,10 +230,12 @@ RpmHeader::constPtr RpmHeader::readPackage( const Pathname & path_r,
   librpmDb::globalInit();
   rpmts ts = ::rpmtsCreate();
   unsigned vsflag = RPMVSF_DEFAULT;
+#if !defined(_RPM_5)
   if ( verification_r & NODIGEST )
     vsflag |= _RPMVSF_NODIGESTS;
   if ( verification_r & NOSIGNATURE )
     vsflag |= _RPMVSF_NOSIGNATURES;
+#endif
   ::rpmtsSetVSFlags( ts, rpmVSFlags(vsflag) );
 
   Header nh = 0;