summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-01-06 22:12:44 +0000
committerjbj <devnull@localhost>2002-01-06 22:12:44 +0000
commitce922f5bdf08eb9058c7ba60c551df2704ae4c26 (patch)
tree2c3f73aaa825aa86e76e1fc3ad51ed5889956e8a /lib/psm.c
parent350d7592de623c3c236e45c103981d1e55f5e5d4 (diff)
downloadlibrpm-tizen-ce922f5bdf08eb9058c7ba60c551df2704ae4c26.tar.gz
librpm-tizen-ce922f5bdf08eb9058c7ba60c551df2704ae4c26.tar.bz2
librpm-tizen-ce922f5bdf08eb9058c7ba60c551df2704ae4c26.zip
- handle lazy db open's in chroot with absolute path, not prefix strip.
CVS patchset: 5239 CVS date: 2002/01/06 22:12:44
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/psm.c b/lib/psm.c
index f3bbb2ada..0a6d7670e 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -33,10 +33,12 @@
/*@access alKey@*/
/*@access rpmDepSet@*/
+#ifdef DYING
/*@-redecl -declundef -exportheadervar@*/
/*@unchecked@*/
extern const char * chroot_prefix;
/*@=redecl =declundef =exportheadervar@*/
+#endif
int rpmVersionCompare(Header first, Header second)
{
@@ -1783,11 +1785,13 @@ assert(psm->mi == NULL);
/*@=superuser@*/
psm->chrootDone = ts->chrootDone = 1;
if (ts->rpmdb != NULL) ts->rpmdb->db_chrootDone = 1;
+#ifdef DYING
/*@-onlytrans@*/
/*@-mods@*/
chroot_prefix = ts->rootDir;
/*@=mods@*/
/*@=onlytrans@*/
+#endif
}
break;
case PSM_CHROOT_OUT:
@@ -1798,9 +1802,11 @@ assert(psm->mi == NULL);
/*@=superuser@*/
psm->chrootDone = ts->chrootDone = 0;
if (ts->rpmdb != NULL) ts->rpmdb->db_chrootDone = 0;
+#ifdef DYING
/*@-mods@*/
chroot_prefix = NULL;
/*@=mods@*/
+#endif
xx = chdir(ts->currDir);
}
break;