From c24a7dc78d07b43661cb7704a6078e124e2b8d75 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 19 Aug 2022 11:02:28 -0500 Subject: [PATCH] kiss-stray: new utility to list 'stray' files Lists files that have no owner - its addition is due to changes in 'kiss-preferred' --- contrib/kiss-stray | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 contrib/kiss-stray diff --git a/contrib/kiss-stray b/contrib/kiss-stray new file mode 100755 index 0000000..a3850e9 --- /dev/null +++ b/contrib/kiss-stray @@ -0,0 +1,7 @@ +#!/bin/sh +# Return a list of files that have no package owner. + +kiss alternatives \ + | cut -d' ' -f2 \ + | xargs -I{} -P0 \ + sh -c "owner=\$(kiss owns {}); [ \$owner ] || printf 'warning: {} has no owner\n'"