]> thyrsus.com Git - freecode-submit.git/commitdiff
This appears to be working.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Dec 2003 07:57:53 +0000 (07:57 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Dec 2003 07:57:53 +0000 (07:57 +0000)
freshmeat-submit

index 94218e7676e69c2f16ab540d14891936eb8b2166..e9423ae39c689e8a6f71ea7b3e8beeb337217f59 100755 (executable)
@@ -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."