aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Support for '/' in distribution names

Open smira opened this issue 11 years ago • 13 comments

Requires special component naming, etc. To be investigated.

Requested by @erickeller in #110.

smira avatar Oct 02 '14 12:10 smira

is there a work-around for this? we're trying to mirror the debian security repo. my commands so far:

aptly mirror create debian-security http://mirror.steadfast.net/debian-security wheezy/updates main contrib non-free

aptly mirror update debian-security

aptly snapshot create debian-security-daily from mirror debian-security

aptly publish snapshot debian-security-daily security

but an updated client will complain with:

W: Conflicting distribution: http://reposerver wheezy/updates Release (expected wheezy but got wheezy/updates)

jschmidt3786 avatar Oct 20 '14 20:10 jschmidt3786

Yeah, you just create a mirror with wheezy-updates or wheezy-security instead of using slash in the distribution name.

vdrandom avatar Oct 20 '14 22:10 vdrandom

@jschmidt3786 while publishing just override distribution name:

aptly publish snapshot -distribution="wheezy-security" ....

smira avatar Oct 21 '14 10:10 smira

aptly 0.8 should automatically replace / with - in distribution name.

smira avatar Oct 21 '14 10:10 smira

yeah exactly, / is replaced with - so we cannot mimicwhat Debian is doing for the security updates, where the distribution is set to 'wheezy/updates' but with aptly we ended up with "wheezy-security", but what we really want is 'wheezy/updates'

please allow / in distribution name

sandrotosi avatar May 05 '15 14:05 sandrotosi

Hey, I think same issues concerns the prefix values. While trying to publish via api I'm hitting 404, but can publish via cli, though... Is it possible to add support for /api for the :prefix names containing "/" too?

wwarmus avatar May 26 '15 11:05 wwarmus

:+1: on this one. allowing "/" in names via api would be great.

rottenbytes avatar Jun 25 '15 13:06 rottenbytes

Looking forward to testing this one as it is the last thing I need to have working for aptly to be the perfect tool for my needs :-)

richard-scott avatar Feb 03 '16 09:02 richard-scott

This relates to #561.

morremeyer avatar Apr 24 '18 16:04 morremeyer

This would be nice to have.

ksalman avatar Sep 11 '19 02:09 ksalman

Wow, I'd forgotten about this tool.... Will this feature get into v1.3.0?

Would be great if it did.

richard-scott avatar Sep 24 '19 13:09 richard-scott

Could also use this feature

YotamAlon avatar Dec 03 '19 08:12 YotamAlon

Following up on this thread, what's the reason to forbid slash / characters in the publish distribution name? I.e. I'm trying to understand this line of code: https://github.com/aptly-dev/aptly/blob/v1.4.0/deb/publish.go#L265

adalessandro avatar Jun 24 '22 14:06 adalessandro