From 7312db109cd9f9e4db4fb86c8b6ad05042bcf4dd Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Fri, 22 Jun 2007 12:36:13 +0000 Subject: [PATCH] fix return values in metafile.sync() which I broke whey I applied Marcus Huewe's patch... --- osc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index 5e15a3a6..f0e3e9f2 100755 --- a/osc/core.py +++ b/osc/core.py @@ -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: