1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-05 02:56:17 +01:00

Remove the Python 2.4 incompatibility introduced with r7507.

This commit is contained in:
Dr. Peter Poeml 2009-06-16 12:14:20 +00:00
parent 4c60d1b285
commit 027a0e5be1

View File

@ -894,10 +894,9 @@ class Package:
f.close()
os.rename(os.path.join(self.storedir, '_files.new'), os.path.join(self.storedir, '_files'))
except:
raise
finally:
if os.path.exists(os.path.join(self.storedir, '_files.new')):
os.unlink(os.path.join(self.storedir, '_files.new'))
raise
def update_datastructs(self):
"""