From: Eric S. Raymond Date: Wed, 10 Dec 2003 07:57:53 +0000 (+0000) Subject: This appears to be working. X-Git-Tag: 2.0~70 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=c3d9f9b9805b5c3d19e82137843b1da241be23bf;p=freecode-submit.git This appears to be working. --- diff --git a/freshmeat-submit b/freshmeat-submit index 94218e7..e9423ae 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -70,12 +70,13 @@ class FreshmeatSession: def publish_release(self, data): "Add a new release to the current project." response = self.session.publish_release(data) - if response != "Release submission successful": + if "OK" not in response: raise FreshmeatSessionException(response) def withdraw_release(self, release): response = self.session.withdraw_release(data) - # FIXME: add a response check as soon as we know what OK looks like + if "OK" not in response: + raise FreshmeatSessionException(response) def logout(self): "End the session."