Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: "gentoo-alt@g.o" <gentoo-alt@g.o>
From: Christopher Warrington <chris@...>
Subject: Re: Run script after emerge --sync ?
Date: Sat, 29 Jan 2011 03:27:42 -0500
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@...> 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@...>




Replies:
Re: Run script after emerge --sync ?
-- Fabian Groffen
References:
Re: Run script after emerge --sync ?
-- Jeremy Olexa
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Run script after emerge --sync ?
Next by thread:
Re: Run script after emerge --sync ?
Previous by date:
Re: Run script after emerge --sync ?
Next by date:
Re: Run script after emerge --sync ?


Updated Jun 18, 2012

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.