diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-23 19:20:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-23 19:20:01 +0000 |
commit | 2da83fcc89acf9d1440615a6d2b3a9c41e839903 (patch) | |
tree | a7ed553e4cce4600cad5c9162eee7bcad673b60d /packages.py | |
parent | 96975c81a324dc524f7ef31e45dfa0e51f35b336 (diff) | |
download | anaconda-2da83fcc89acf9d1440615a6d2b3a9c41e839903.tar.gz anaconda-2da83fcc89acf9d1440615a6d2b3a9c41e839903.tar.xz anaconda-2da83fcc89acf9d1440615a6d2b3a9c41e839903.zip |
explicitly make sure the db is closed for transaction sets where we
don't need/care about the db
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages.py b/packages.py index 84a283a65..edb32fd65 100644 --- a/packages.py +++ b/packages.py @@ -441,6 +441,7 @@ def doMigrateFilesystems(dir, thefsset, diskset, upgrade, instPath): def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath): if dir == DISPATCH_BACK: + log("unmounting filesystems") thefsset.umountFilesystems(instPath) return @@ -455,6 +456,7 @@ def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath): thefsset.formatSwap(instPath) thefsset.turnOnSwap(instPath) thefsset.makeFilesystems (instPath) + log("mounting filesystems") thefsset.mountFilesystems (instPath) def setupTimezone(timezone, upgrade, instPath, dir): @@ -1019,6 +1021,7 @@ def doPostInstall(method, id, intf, instPath): stderr = "/dev/tty5", root = instPath) ts = rpm.TransactionSet() + ts.closeDB() fd = os.open(id.compspkg, os.O_RDONLY) h = ts.hdrFromFdno(fd) os.close(fd) |