Show More
@@ -42,8 +42,6 b' def _playback(journal, report, opener, e' | |||||
42 |
|
42 | |||
43 | class transaction(object): |
|
43 | class transaction(object): | |
44 | def __init__(self, report, opener, journal, after=None, createmode=None): |
|
44 | def __init__(self, report, opener, journal, after=None, createmode=None): | |
45 | self.journal = None |
|
|||
46 |
|
||||
47 | self.count = 1 |
|
45 | self.count = 1 | |
48 | self.report = report |
|
46 | self.report = report | |
49 | self.opener = opener |
|
47 | self.opener = opener | |
@@ -140,14 +138,14 b' class transaction(object):' | |||||
140 | self.count = 0 |
|
138 | self.count = 0 | |
141 | self.file.close() |
|
139 | self.file.close() | |
142 |
|
140 | |||
143 | if not self.entries: |
|
141 | try: | |
144 |
if self. |
|
142 | if not self.entries: | |
145 |
|
|
143 | if self.journal: | |
146 | return |
|
144 | os.unlink(self.journal) | |
|
145 | return | |||
147 |
|
146 | |||
148 | self.report(_("transaction abort!\n")) |
|
147 | self.report(_("transaction abort!\n")) | |
149 |
|
148 | |||
150 | try: |
|
|||
151 | try: |
|
149 | try: | |
152 | _playback(self.journal, self.report, self.opener, self.entries, False) |
|
150 | _playback(self.journal, self.report, self.opener, self.entries, False) | |
153 | self.report(_("rollback completed\n")) |
|
151 | self.report(_("rollback completed\n")) |
General Comments 0
You need to be logged in to leave comments.
Login now