diff -Nru dput-0.9.2.37ubuntu3/debian/changelog dput-0.9.2.37ubuntu4/debian/changelog --- dput-0.9.2.37ubuntu3/debian/changelog 2009-03-02 15:42:22.000000000 +0100 +++ dput-0.9.2.37ubuntu4/debian/changelog 2009-06-17 14:47:44.000000000 +0200 @@ -1,3 +1,9 @@ +dput (0.9.2.37ubuntu4) jaunty; urgency=low + + * Added a new error check when HTTP method is not allowed (Fixes LP: #380940) + + -- David Erosa GarcĂ­a Wed, 17 Jun 2009 14:47:21 +0200 + dput (0.9.2.37ubuntu3) jaunty; urgency=low * Fix deprecation warning with python 2.6 (LP: #336601) diff -Nru dput-0.9.2.37ubuntu3/http.py dput-0.9.2.37ubuntu4/http.py --- dput-0.9.2.37ubuntu3/http.py 2008-12-08 18:33:46.000000000 +0100 +++ dput-0.9.2.37ubuntu4/http.py 2009-06-17 14:48:55.000000000 +0200 @@ -119,6 +119,8 @@ if res.status == 401: print "Upload failed as unauthorized: %s"%res.reason print " Maybe wrong username or password?" + elif res.status == 405: + print "Upload failed: HTTP method not allowed." else: print "Upload failed: %d %d"% (res.status, res.reason) sys.exit(1)