Skip to content
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

Error on removing package with several versions. #65

Open
cyrinux opened this issue Apr 21, 2021 · 2 comments
Open

Error on removing package with several versions. #65

cyrinux opened this issue Apr 21, 2021 · 2 comments
Assignees
Labels
bug this is a bug that is contrary to the design of the program

Comments

@cyrinux
Copy link
Contributor

cyrinux commented Apr 21, 2021

Hi @cassava :-)

With @maximbaz with spot something that can be enhanced i think.
When trying to remove a package that got several version we got this.

image

@maximbaz got several version and got this error. And from my side, with only one package, no error.

Any idea?

Regards,

@PedroHLC
Copy link

PedroHLC commented Apr 25, 2021

yeah, I can confirm this one. Randomly repoctl duplicates/triplicates the last package listed in the remove command:

> repoctl remove mesa-tkg-git
Removing package from database: mesa-tkg-git
Removing package from database: mesa-tkg-git
Removing package from database: mesa-tkg-git

ending with:

error: command exited with non-zero return code: /usr/bin/repo-remove chaotic-aur.db.tar.zst mesa-tkg-git mesa-tkg-git mesa-tkg-git.
Backing up: mesa-tkg-git-21.2.0_devel.138634.3d979c91695-1-x86_64.pkg.tar.zst{,.sig}
Backing up: mesa-tkg-git-21.2.0_devel.138648.01ba8a8d02b-1-x86_64.pkg.tar.zst{,.sig}
Backing up: mesa-tkg-git-21.2.0_devel.138660.48d48fbf3c5-1-x86_64.pkg.tar.zst{,.sig}

EDIT: Now that I noticed, that's happening because we have more than one version of the same package in the repo. @cassava just needs to make the list of parameters sent to "repo-remove" unique.

@cassava cassava self-assigned this Feb 27, 2023
@cassava cassava added the bug this is a bug that is contrary to the design of the program label Feb 27, 2023
@cassava
Copy link
Owner

cassava commented Feb 27, 2023

Hi @cyrinux thanks for raising the issue and sorry for the massive delay in my response. I don't think these last two years have been so great for many of us.

This looks like it should be easily fixable. Thanks for pointing out the probable issue @PedroHLC!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug this is a bug that is contrary to the design of the program
Projects
None yet
Development

No branches or pull requests

3 participants