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:
parent
4c60d1b285
commit
027a0e5be1
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user