Hi,

I generally try to cleanup old files in installed system, between
snapshots (remove old man pages, old libraries... that are not installed
in new snapshots, but was in previous).

Now, that snapshot embeds file list in locatedb format
(usr/lib/locate/src.db and usr/X11R6/lib/locate/xorg.db), I look to use
these files for my purpose.

But in last snapshot (OpenBSD 5.5-current (GENERIC) #251: Sun Jul 13
20:40:26 MDT 2014), there is a diff between files in tgz, and files
annonced in src.db .

I generate file list in tgz with:
$ for i in ${SNAPSHOT_DIR}/*.tgz ; do tar zft "${i}" ; done \
        | sort >filelist-tgz

And file list in locatedb with:
$ locate -d usr/lib/locate/src.db:usr/X11R6/lib/locate/xorg.db '*' \
        | sed 's/^[^:]*:/./' | sort >filelist-db

(the sed part is to have same format than tgz version)

When diffing the file I have a difference:
$ diff -u -C0 filelist-tgz filelist-db
*** filelist-tgz        Mon Jul 14 09:00:04 2014
--- filelist-db Mon Jul 14 08:59:28 2014
***************
*** 13233 ****
--- 13234 ----
+ ./usr/libdata/perl5/OpenBSD/PackageRepository/Source.pm

So the locatedb say ".../Source.pm" is installed, but tgz don't include
it.

As sometimes, snapshots embed modifications not commited, is it the
case here ? Or I miss something else ?

Thanks.
-- 
Sébastien Marie

Reply via email to