On 2011-1-24 8:30 AM, "Jeremy Olexa" <email@example.com> wrote:
> On Sat, 15 Jan 2011 05:35:10 -0500, Christopher Warrington wrote:
>> On 2011-1-15 2:05 AM, "Alan Hourihane" <firstname.lastname@example.org> wrote:
>>> Is there a way to run a script after an emerge --sync operation ?
>> If you merge app-portage/portage-utils, you are supposed to be able
>>to place scripts in ROOT/etc/portage/postsync.d/ that will get run.
>> However, the script that I have in my ROOT/etc/portage/bin/post_sync
>> has a hardcoded "/etc/portage/postsync.d/" instead of one based on my
>> It looks like we'll have to fix that. I manually edited the post_sync
>>script to point it to the proper ROOTed location, and the scripts ran
>>my most recent sync.
> Fixed without a revbump - you'll need to remerge it. Sorry about the
Works for me. Thanks!
However, I wonder if there's a quoting problem in the expansion. Shouldn't
for f in "@GENTOO_PORTAGE_EPREFIX@"/etc/portage/postsync.d/* ; do
for f in "@GENTOO_PORTAGE_EPREFIX@/etc/portage/postsync.d/*" ; do
For example, on my machine, this expands to
for f in "/Gentoo"/etc/portage/postsync.d/* ; do
which works for me, but doesn't "look" right.
Christopher Warrington <email@example.com>