xbstrap icon indicating copy to clipboard operation
xbstrap copied to clipboard

xbstrap: add `discard` command for nuking packages

Open no92 opened this issue 2 years ago • 7 comments

no92 avatar May 20 '22 21:05 no92

Why change the meaning of mark_* instead of just removing the source and build directories (especially since this might lead to conflicts of some sort)?

Also, what scenario is this necessary in that isn't better addressed otherwise?

ArsenArsen avatar Aug 10 '22 12:08 ArsenArsen

Addressed the issues raised above.

no92 avatar Jan 23 '23 22:01 no92

Bump.

Dennisbonke avatar Apr 02 '23 00:04 Dennisbonke

my question remains unadressed

ArsenArsen avatar Apr 03 '23 22:04 ArsenArsen

Also, what scenario is this necessary in that isn't better addressed otherwise?

I use this to clean up sources I don't need (e.g. before pulling from CI), e.g. after upstreaming them. Also, testing patches is really convenient. Manually removing risks leaving parts of the package behind, which this would avoid. Finally, providing a way to delete packages is, to me, the natural counterpart to being able to build/pull them.

no92 avatar Apr 10 '23 22:04 no92

personally I feel a command like this is useful - I have ran into cases where I want to purge a package locally, and having to go in with a separate tool (even if just rm/rmdir) to do so feels like an oversight in the user experience of xbstrap, even more so because this functionality is seemingly trivial to implement

ikbenlike avatar Apr 12 '23 08:04 ikbenlike

again, an uninstall command would be very useful. the delete-source action here also seems unobjectionable, even though I don't see how it's any better than removing source directories you work in manually anyway, however, the discard-pkg action does not discard pkgs (it uninstalls, but deletes build, but doesn't delete artifacts), hence it is not really acceptable in its current form

ArsenArsen avatar Apr 12 '23 10:04 ArsenArsen