aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.56k stars 371 forks source link

Replaces directories with dashes when publishing, preventing reprepro compatibility #404

Open directhex opened 8 years ago

directhex commented 8 years ago

Reprepro snapshots come in the format reponame/snapshots/snapname

Migrating from reprepro to aptly requires that all my old snapshot URLs continue to work for the people who use them

I have a mirror snapshot:

* [beta/snapshots/c7-ms]: Snapshot from mirror [beta/snapshots/c7-ms]: http://download.mono-project.com/repo/debian/ beta/snapshots/c7-ms [src]

If I publish this with $ aptly publish snapshot beta/snapshots/c7-ms the output shows that the directory structure has been flattened:

Snapshot beta/snapshots/c7-ms has been successfully published.
Please setup your webserver to serve directory '/srv/aptly/public' with autoindexing.
Now you can add following line to apt sources:
  deb http://your-server/ beta-snapshots-c7-ms main

I need directory-in-publish-name support, in order to migrate a busy reprepro repository fully.

directhex commented 8 years ago

This appears to be addressed in https://github.com/smira/aptly/pull/216