Skip to content

Commit

Permalink
Report untracked folders
Browse files Browse the repository at this point in the history
Prior to this commit untracked folders where being ignored and
only untracked files are reported as lost.

Signed-off-by: Michael Egger <[email protected]>
  • Loading branch information
gcarq committed Dec 26, 2022
1 parent d9d07c0 commit d0e68d6
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 147 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ either created manually or leftovers from uninstalled packages,
which can result in subtle bugs or misconfigurations.

## Notes
Symlinks are not reported as lost as long as the link target exists and is tracked.
Symlinks are not reported as lost as long as the link target exists and is tracked,
this is the same behavior as implemented in `equery b <path>`.

Some common paths are not reported (e.g.: `/etc/group`, `/etc/machine-id`, ...),
those are defined in `IGNORED_PATHS` and `PKG_PATHS` in `lostfiles.py`.
Expand All @@ -19,12 +20,24 @@ those are defined in `IGNORED_PATHS` and `PKG_PATHS` in `lostfiles.py`.
git clone https://github.com/gcarq/portage-lostfiles.git
cd portage-lostfiles
$ ./lostfiles.py
/etc/env.d/000opengl
/etc/env.d/99local
/etc/modprobe.d/blacklist.conf
/etc/X11/xorg.conf.d/20opengl.conf
/etc/sysctl.d/98-idea.conf
...
```

## Examples
Ignore built-in whitelist and report all files
```bash
$ ./lostfiles.py --strict
/usr/share/info/dir
/usr/share/applications/mimeinfo.cache
/usr/share/binutils-data/x86_64-pc-linux-gnu/2.39/info/dir
/usr/share/mime/XMLnamespaces
/usr/share/mime/aliases
...
```

Override default paths
Expand Down
Loading

0 comments on commit d0e68d6

Please sign in to comment.