On Friday 24 November 2006 12:48, Arnau Bria wrote:
> Hi,
>
> I have recently updated my laptop and found some new files
> under /etc/portage:
>
> # ls -lsa
> total 36
> [...]
> 4 drwxr-xr-x  2 root root    4096 nov 20 22:42 bin
> 4 drwxr-xr-x  2 root root    4096 nov 21 11:14 postsync.d
> 4 drwxrwsr-x  2 root portage 4096 oct 27  2004 sets
>
> I'm comparing them with same dir in my work pc and those files/dires
> are not present... The sync difference between them is about a
> week...
>
> Anyone could explain me what are this files for?

It would appear that portage put them there, on my system they were 
probably created around Aug 21. What the files do is:

- bin contains a script called post-sync
- it looks for a directory called postsync.d and if it finds executables 
there, it executes them all.
- Currently the only script there is q-reinitialize, which runs q -r
- Running q shows:
  -r, --reinitialize   * Reinitialize ebuild cache

So, without even having to look into the portage source, I can predict 
that this gets run after emerge --sync and it's purpose it to easily 
automate things like reinitializing the ebuild cache without having to 
hard code it into portage

Strangely enough, no package claims ownership of these files:

nazgul portage # equery belongs /etc/portage/bin/post_sync
[ Searching for file(s) /etc/portage/bin/post_sync in *... ]
nazgul portage #


alan
-- 
[email protected] mailing list

Reply via email to