summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-04-27 01:11:48 +0000
committerjbj <devnull@localhost>2000-04-27 01:11:48 +0000
commit113948c75c111b27d168719573d5c29c92e7dc0d (patch)
tree075e5f5b2f25bdb9319648610b99a466eab33136 /python
parent24a64f27394fcf24e3e3f3d9d2f7b321f603a6a8 (diff)
downloadrpm-113948c75c111b27d168719573d5c29c92e7dc0d.tar.gz
rpm-113948c75c111b27d168719573d5c29c92e7dc0d.tar.bz2
rpm-113948c75c111b27d168719573d5c29c92e7dc0d.zip
Sanity and API clean up. (make dist)
CVS patchset: 3705 CVS date: 2000/04/27 01:11:48
Diffstat (limited to 'python')
-rw-r--r--python/upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/upgrade.c b/python/upgrade.c
index 1ce68e4f7..a2db940a4 100644
--- a/python/upgrade.c
+++ b/python/upgrade.c
@@ -589,7 +589,7 @@ int ugFindUpgradePackages(struct pkgSet *psp, char *installRoot)
rpmSetVerbosity(RPMMESS_FATALERROR);
old = rpmErrorSetCallback(emptyErrorCallback);
- if (rpmdbOpenForTraversal(installRoot, &db)) {
+ if (rpmdbOpen(installRoot, &db, O_RDONLY, 0644)) {
/*logMessage("failed opening %s/var/lib/rpm/packages.rpm",
installRoot);*/
return(-1);