#487458 if whole tree implicated, then just report its root

Package:
cruft-ng
Source:
cruft-ng
Description:
program that finds any cruft built up on your system
Submitter:
Date:
2015-09-21 11:45:09 UTC
Severity:
wishlist
#487458#5
Date:
2008-06-21 22:57:58 UTC
From:
To:
Instead of doing e.g.,
---- unexplained: var ----
        /var/lib/mediawiki-1.12.0
        /var/lib/mediawiki-1.12.0/.htaccess
	(hundreds follow.)

Optionally do like diff -r, and just say
---- unexplained: var ----
        /var/lib/mediawiki-1.12.0/
Or
        /var/lib/mediawiki-1.12.0/: 324 files in 39 directories

#487458#10
Date:
2008-06-23 20:38:44 UTC
From:
To:
tags 487458 + help confirmed
thanks

I agree this would be a nice feature, as cruft's reports can easily get
unreadable because of their size.

However cruft does not have a notion of "tree", it just processes lists
of filenames. Consequently, making it recognize whether a whole subtree
is implicated, would be rather difficult. I'm not saying "impossible",
because both lists of implicated and existing files are available.
However my algorithmic skills are not good enough to attempt writing an
efficient implementation myself. I will happily accept patches, though.

In the meantime, you can have a look at #291823 and its blocker bug, for
a crude UI to cruft reports.

regards,

Marcin

#487458#17
Date:
2008-06-23 22:07:50 UTC
From:
To:
MO> In the meantime, you can have a look at #291823 and its blocker bug, for
MO> a crude UI to cruft reports.

OK, thanks anyway but I think adding a UI is going in the wrong
direction, for me, Dan "batch jobs" Jacobson, at least. Anyway, one
should expect that who is reading the reports quite likely is not a
person, but another program.