aptly snapshot publishing issues

963 views
Skip to first unread message

Constantin

unread,
Feb 13, 2015, 3:59:25 AM2/13/15
to aptly-...@googlegroups.com
Hello,

I have the following mirrors:

 * [debian-wheezy-security]: http://security.debian.org/ wheezy/updates
 * [debian-wheezy-updates]: http://ftp.debian.org/debian/ wheezy-updates

with the following snapshots:
 * [debian-wheezy-security]: Snapshot from mirror [debian-wheezy-security]: http://security.debian.org/ wheezy/updates
 * [debian-wheezy-updates]: Snapshot from mirror [debian-wheezy-updates]: http://ftp.debian.org/debian/ wheezy-updates

The problem is when i publish these 2 snapshots using the following commands:
- aptly publish snapshot debian-wheezy-security with the output:

Snapshot debian-wheezy-security has been successfully published.
  deb http://your-server/ wheezy-updates main
  deb-src http://your-server/ wheezy-updates main

Because of publishing with the name wheezy/updates the second snapshot cannot be published the same way:
- aptly publish snapshot debian-wheezy-updates

on the second command i have the following error:
ERROR: prefix/distribution already used by another published repo: ./wheezy-updates [amd64, i386, source] publishes {main: [debian-wheezy-security]: Snapshot from mirror [debian-wheezy-security]: http://security.debian.org/ wheezy/updates [src]}

which is normally.
How can i fix this in order to publish both snapshots, except from adding different prefixes when publishing them ?
Thank you.



Andrey Smirnov

unread,
Feb 15, 2015, 10:41:01 AM2/15/15
to Constantin, aptly-...@googlegroups.com
Hi Constantin!

It depends on what you would like to achieve in the end.

If you would like to get updates & security combined (with latest versions of packages being used), you might want to merge (https://www.aptly.info/doc/aptly/snapshot/merge/) your snapshots into one using flag `-latest`. You would get single snapshot which can be published.

If you would like them to stay as separate published repositories, you need to override distribution names. aptly doesn't support publishing under distributions with '/' in it, so it automatically changes 'wheezy/updates' to 'wheezy-updates' and both your snapshots default to the same distribution 'wheezy-updates`. Just use flag `-distribution` while publishing to override that and you would have two published repos under different distribution names.



--
You received this message because you are subscribed to the Google Groups "aptly-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages