Gentoo Archives: gentoo-alt

From: Christopher Warrington <chris@×××××.net>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: Re: [gentoo-alt] Run script after emerge --sync ?
Date: Sat, 29 Jan 2011 08:28:07
In Reply to: Re: [gentoo-alt] Run script after emerge --sync ? by Jeremy Olexa
On 2011-1-24 8:30 AM, "Jeremy Olexa" <darkside@g.o> wrote:

> On Sat, 15 Jan 2011 05:35:10 -0500, Christopher Warrington wrote: >> On 2011-1-15 2:05 AM, "Alan Hourihane" <alanh@×××××××××××.uk> 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 >>root. >> 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 >>after >>my most recent sync. > Fixed without a revbump - you'll need to remerge it. Sorry about the > trouble. :)
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 be 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 <chris@×××××.net>


Subject Author
Re: [gentoo-alt] Run script after emerge --sync ? Fabian Groffen <grobian@g.o>