1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- fix write_conflictlist function

This commit is contained in:
Michael Schröder 2009-04-23 08:35:11 +00:00
parent f15d1dd57e
commit fd41f0b236

View File

@ -808,7 +808,10 @@ class Package:
def write_conflictlist(self):
if len(self.in_conflict) == 0:
os.unlink(os.path.join(self.storedir, '_in_conflict'))
try:
os.unlink(os.path.join(self.storedir, '_in_conflict'))
except:
pass
else:
fname = os.path.join(self.storedir, '_in_conflict')
f = open(fname, 'w')