tools: Fix cockpit-machines appdata for partial builds (#10220)
tools: Fix cockpit-machines appdata for partial builds (#10220)

- When building without optional packages, remove machine's metainfo.
 - When building without basic packages, don't remove
   /usr/share/metainfo/ wholesale, just the bits that belong to basic
   packages.
moraleslazaro/cockpit,cockpituous/cockpit,martinpitt/cockpit,garrett/cockpit,deryni/cockpit,garrett/cockpit,garrett/cockpit,andreasn/cockpit,andreasn/cockpit,mvollmer/cockpit,andreasn/cockpit,moraleslazaro/cockpit,deryni/cockpit,mvollmer/cockpit,deryni/cockpit,mvollmer/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,deryni/cockpit,martinpitt/cockpit,garrett/cockpit,cockpit-project/cockpit,martinpitt/cockpit,mvollmer/cockpit,deryni/cockpit,cockpituous/cockpit,martinpitt/cockpit,andreasn/cockpit,deryni/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,martinpitt/cockpit,cockpit-project/cockpit,mvollmer/cockpit,andreasn/cockpit,andreasn/cockpit,moraleslazaro/cockpit,garrett/cockpit,cockpituous/cockpit,cockpituous/cockpit,cockpituous/cockpit,deryni/cockpit,andreasn/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,moraleslazaro/cockpit