krobertson / deb-s3

Easily create and manage an APT repository on S3 -- NO LONGER MAINTAINED
MIT License
482 stars 148 forks source link

Fix --fail-if-exists #142

Closed agimenez closed 6 years ago

agimenez commented 6 years ago

When --fail-if-exists is in effect, the code makes a HEAD request to check if the object exists and has the same md5, but uses the results of that request to write the name of the object via the public_url method (that only applies to GET request results).

As we already have the filename in the method, just use that directly in the message instead of an object property.

Fixes #10.

Signed-off-by: L. Alberto Giménez alberto.gimenez@capside.com

agimenez commented 6 years ago

@krobertson did you have a chance to take a look at this?

agimenez commented 6 years ago

Hey, can you please take a look at this @krobertson ?

Thank you!

agimenez commented 6 years ago

Hi! any news about this?