Repository: aptly-dev/aptly

Issue #183: Mirroring repository with colliding/conflicting packages
Created: 2015-01-28T17:25:16Z
I am attempting to mirror the following repository:
http://packages.erlang-solutions.com/ubuntu/dists/precise/contrib/binary-amd64/Packages
Unfortunately, after adding the mirror in aptly, updates fail with the following message:
Downloading & parsing package files...
Downloading http://packages.erlang-solutions.com/ubuntu/dists/precise/contrib/binary-amd64/Packages.bz2...
ERROR: unable to update: conflict in package elixir_1.0.0-1_all

After looking into it, the problem is that the repository itself is broken. If you look at: http://packages.erlang-solutions.com/ubuntu/dists/precise/contrib/binary-amd64/Packages
and search for 'elixir_' you will find that they have published two separate files (1.0.0-1 and 1.0.2-1) under the same version (1.0.0-1). While this is definitely a mistake on their part, it still prevents me from being able to serve a mirror of this repository using Aptly.
I've looked through the other reported issues, and it appears that if you validly create mirrors and update them, but then go to publish a snapshot/repo/whatever that has this problem, it will not work without the -force-overwrite flag, but the problem here is different in that it's not under my control, and the files aren't conflicting, just the original repository is causing issues.
First off: Is there any way we can get Aptly to intelligently handle this situation? If not, I'll have to go bother the repo owners, and doubt I'll get help there.
Second: If we're going to fix, here is my theory on how to make it work:

Allow the download of both files (if they're identical, you wouldn't have to worry about it anyway, as it'd be a duplicate)
Alert users to the conflict
Allow users to decide upon how to handle the conflict during publishing (which has already been fixed, if I understand it correctly)
Alternatively, provide flagging to allow you to specify how to override (newer file timestamp is the only thing I can think of to differentiate)

Let me know if you need any further details!

Duplicate issue #187: conflict in package on `mirror update`
Created: 2015-01-31T00:56:16Z
When trying to mirror precise or trusty from packages.erlang-solutions.com/ubuntu/
I get this error:
$ aptly mirror update erlang-precise
Downloading http://packages.erlang-solutions.com/ubuntu/dists/precise/InRelease...
Downloading http://packages.erlang-solutions.com/ubuntu/dists/precise/Release...
Downloading http://packages.erlang-solutions.com/ubuntu/dists/precise/Release.gpg...
gpgv: Signature made Thu 11 Dec 2014 06:46:05 AM CST using RSA key ID A14F4FCA
gpgv: Good signature from "Erlang Solutions Ltd. <packages@erlang-solutions.com>"
Downloading & parsing package files...
Downloading http://packages.erlang-solutions.com/ubuntu/dists/precise/contrib/binary-amd64/Packages.bz2...
ERROR: unable to update: conflict in package elixir_1.0.0-1_all

The -force-overwrite doesn't appear to be usable for the mirror commands and I'm not sure how to work around this.

Closing comment (2015-01-31T17:57:28Z): @paulczar this seems to be exact duplicate of #183. I'll try to deal with it today and release nightly build.