All pastes #1959417 Raw Edit

aguerreiro

public text v1 · immutable
#1959417 ·published 2010-10-11 16:34 UTC
rendered paste body
commit 0a00fe2340726414e82ba7da815ae233981f8a55Author: Andre Guerreiro <andre.guerreiro@caixamagica.pt>Date:   Wed Aug 4 20:29:04 2010 +0100    Corrected rpmfiNew flag to be compatible with rpm 4.8diff --git a/apt-pkg/rpm/rpmcfgbackup.cc b/apt-pkg/rpm/rpmcfgbackup.ccindex 81e0527..57c43fa 100644--- a/apt-pkg/rpm/rpmcfgbackup.cc+++ b/apt-pkg/rpm/rpmcfgbackup.cc@@ -24,6 +24,7 @@ #include <rpm/rpmdb.h> #include <rpm/rpmlib.h> #include <rpm/rpmcli.h>+#include <rpm/rpmfi.h>  #include <fcntl.h> #include <unistd.h>@@ -136,7 +137,7 @@ bool pkgRPMCfgBackup::GetCfgFileList(const char *pkgName,vector<string> &FileLis   	pkgRelease = rpmtdGetString(tagdata);       }        -      fi = rpmfiNew(ts, hdr, RPMTAG_BASENAMES, scareMem);+      fi = rpmfiNew(ts, hdr, RPMTAG_BASENAMES, (rpmfiFlags)RPMFI_FLAGS_QUERY);       if (rpmfiFC(fi) <= 0) {   	rpmtdFreeData(tagdata);   	rpmtdFree(tagdata);