aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Add option to change settings of publish without dropping?

Open ghubz opened this issue 3 years ago • 4 comments

Hi,

Currently when you need to change certain parameters of a published repo (from snapshot) then you need to drop the entire published repo (meaning during that time it won't be available) and then republish it with the new data.

For example if you need to just enable support for acquire-by-hash you cannot do it via switch. Or change Origin/Label etc.

Is there any technical limitation behind this?

Thanks

ghubz avatar Jan 05 '22 12:01 ghubz

I have the same issue, I just wanted to set the Label via PUT but that exists only for the initial creation.

spaceone avatar Jun 17 '25 16:06 spaceone

no technical limitation, just implemented differently... currently there is always a publish involved, some logic would be needed to detect when this is not needed..

neolynx avatar Jun 21 '25 13:06 neolynx

@spaceone A small patch can make it, you can make a try: https://github.com/xzhang1/aptly/commit/65c1e83ec40d24b0e13bf8d72a7a544d6e5f91d5

xzhang1 avatar Aug 20 '25 15:08 xzhang1

@spaceone A small patch can make it, you can make a try: xzhang1@65c1e83

Thank you for providing the patch. Unfortunately I don't have permissions in our domain to compile it and deploy it there.

spaceone avatar Aug 26 '25 15:08 spaceone