Bug#900545: dput: display the body of http errors responses

2018-06-05 Thread Alexandre Viau
I have updated the code to display multi-lines error messages better. And attached the patch to this email. (this was also merged in dput-ng). Please consider applying this patch to dput. Cheers, -- Alexandre Viau av...@debian.org From a51cb1aa992b3dd38856531755c51779de4b2981 Mon Sep 17 00:00:0

Bug#900545: dput: display the body of http errors responses

2018-06-04 Thread Alexandre Viau
On 2018-06-01 10:50 PM, Ben Finney wrote: > That's a lot simpler than I thought. Thank you for the code, I see now > what you are asking for; it's a reasonable improvement that would not > add much complexity. Great :) I would like to mention that it was merged in dput-ng:  - https://salsa.debia

Bug#900545: dput: display the body of http errors responses

2018-06-01 Thread Ben Finney
On 01-Jun-2018, Alexandre Viau wrote: > I am building autodeb as part of Google Summer of Code: >  - https://auto.debian.net/ Oh, that's great! > The Debian queues do not even accept http uploads but this feature > is still present in dput. > Other services like mentors.debian.net accept http up

Bug#900545: dput: display the body of http errors responses

2018-06-01 Thread Alexandre Viau
This could be as simple as this: --- dput/methods/http.py | 5 + 1 file changed, 5 insertions(+) diff --git a/dput/methods/http.py b/dput/methods/http.py index 5bd0fe7..40acdc1 100644 --- a/dput/methods/http.py +++ b/dput/methods/http.py @@ -160,6 +160,11 @@ def upload( else:

Bug#900545: dput: display the body of http errors responses

2018-06-01 Thread Alexandre Viau
On 2018-06-01 02:29 AM, Ben Finney wrote: > > I assume this is a service that emulates the Debian archive queue > server? Yes, kind of. I am building autodeb as part of Google Summer of Code:  - https://auto.debian.net/ > If the Debian upload queue is not sending those messages, I think it's > to

Bug#900545: dput: display the body of http errors responses

2018-05-31 Thread Ben Finney
On 01-Jun-2018, Alexandre Viau wrote: > I am building a service that accepts uploads via dput. Thank you for working on this service. I assume this is a service that emulates the Debian archive queue server? > My service does a number of checks when it receives uploads. > For example, it only a

Bug#900545: dput: display the body of http errors responses

2018-05-31 Thread Alexandre Viau
Package: dput Severity: wishlist Hello, I am building a service that accepts uploads via dput. My service does a number of checks when it receives uploads. For example, it only accepts source uploads. If you upload a .deb, my service returns a 400 error with a message: - "Only source uploads