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

fix return values in metafile.sync() which I broke whey I applied Marcus Huewe's patch...

This commit is contained in:
Dr. Peter Poeml 2007-06-22 12:36:13 +00:00
parent 955c45868c
commit 7312db109c

View File

@ -849,14 +849,14 @@ class metafile:
if self.change_is_required == True and os.path.getmtime(self.filename) == self.timestamp:
print 'File unchanged. Not saving.'
os.unlink(self.filename)
return
return True
try:
print 'Sending meta data...'
http_PUT(self.url, file=self.filename)
os.unlink(self.filename)
print 'Done.'
return
return True
except urllib2.HTTPError, e:
# internal server error (probably the xml file is incorrect)
if e.code == 500: