-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding new component to published repo #1242
Comments
I had exactly the same problem, until a minute ago. To drop the publish you need root@foobar:/var/aptly# aptly publish list
The distribution here is jammy and the prefix is stuff, so to drop the publish the command is: aptly publish drop jammy stuff. While this works just find for unpublishing the repo so you can add a new component to it, Yup. You're screwed big time... I believe that this is a MAJOR flaw in aptly. You should be able to either add a new component It has been suggested to me to use snapshots, but my repo changes constantly because we use |
Hi @TimoSairiala, @alamaral, and thanks for reporting... I would also recommend to use snapshots, I think the problems you are describing led to the introduction of snapshots. Apropos 'reluctantly inherited', I feel you ... :) but there is only one way forward... it should not bee too hard to introduce snapshots (even without breaking the current approach and running both in parallel). Here is what I would try:
aptly publish switch -keyring=trustedkeys.gpg -gpg-key=gpg@email my_test publish1 snapshot2
|
Hi @neolynx! I've been experiencing the same problem (see #1397). After reading this case, I thought snapshots were the solution, but no luck. Creating the initial local repo, adding packages, then creating the snapshot and finally publishing for the first time works as expected:
Adding extra packages (same component and distribution) is not a problem either: the local repo is updated, a new snapshot is created and then published using However, when trying to add a second component (same distribution),
Perhaps I'm missing something in your explanation, but I'm not sure how to proceed. Any help would be appreciated. |
Hi @carlosabalde, You have to use the latest code from the master branch that contains #1366. We have introduced a new subcommand group
that gives you full control over the component to snapshot/repo mapping after the published repository has been created. Do not forget to call |
I have a local repo which I have published already. But I have to add deb packages with another component name to this same published repo. Is there any way to publish it again with new component name included without dropping the already published repo?
Detailed Description
What I do is I have one published repo:
=> so far so good
now I have to add more packages with another component name
This last publishing gives an error because this is already published:
ERROR: prefix/distribution already used by another published repo: ./my_test [amd64] publishes {main: [test-adding-component]}
Context
I am running aptly on nas with big amount of deb packages and what ever I do it takes ages. If I run
aptly publish drop
it also means that repo is not accessible for a while. It is possible I am just doing something wrong or misunderstood instructions, maybe I should be running it another way?Possible Implementation
maybe some sort of
republish
orforce
parameter would do the trick or possibly there already exists something?The text was updated successfully, but these errors were encountered: