* unbreak.. finalize is in pisi.repodb module. ctx.repodb object (RepoDB)
does not have a finalize method.
This commit is contained in:
+2
-6
@@ -134,12 +134,8 @@ def finalize():
|
|||||||
ctx.loghandler.flush()
|
ctx.loghandler.flush()
|
||||||
ctx.log.removeHandler(ctx.loghandler)
|
ctx.log.removeHandler(ctx.loghandler)
|
||||||
|
|
||||||
if ctx.repodb:
|
pisi.db.repodb.finalize()
|
||||||
ctx.repodb.finalize()
|
pisi.db.installdb.finalize()
|
||||||
ctx.repodb = None
|
|
||||||
if ctx.installdb:
|
|
||||||
ctx.installdb.finalize()
|
|
||||||
ctx.installdb = None
|
|
||||||
if ctx.filesdb != None:
|
if ctx.filesdb != None:
|
||||||
ctx.filesdb.close()
|
ctx.filesdb.close()
|
||||||
ctx.filesdb = None
|
ctx.filesdb = None
|
||||||
|
|||||||
Reference in New Issue
Block a user