ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools (ZOT) repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 26 forks source link

zopen clean -c #616

Closed gngrossi closed 7 months ago

gngrossi commented 7 months ago

Enhance zopen clean -c to remove single cache package(s). Currently all packages are removed. thanks

IgorTodorovskiIBM commented 7 months ago

Thanks, this issue and https://github.com/ZOSOpenTools/meta/issues/619 might make sense to handle in one PR

gngrossi commented 7 months ago

zopen clean -c could/should remove previous packages (pax files and directories) thanks

cache

${ROOTFS}/var/cache/zopen

package directories

${ROOTFS}/usr/local/zopen

DevonianTeuchter commented 7 months ago

I actually have an updated zopen clean that enhances the --unused option (provides an --all to remove all packages' obsoleted versions and also to accept a list of packages rather than a singular entry - just needs some test cases written. The cache and the alternative "store" are separate concepts really. Allowing --cache & --unused in the same command (with package list or all) would give the requested behaviour whilst keeping each option dealing with it's relative component.