On Thu, 2006-11-16 at 22:27 -0800, Daevid Vincent wrote:
> I always found this annoying...
> 
> How come when I emerge something, my 'esearch' isn't updated until the next
> time I do an 'esync'? 

because esearch trawls through /usr/portage only when you tell it to,
and stores it's info in a database somewhere.

> *  www-apps/trac
>       Latest version available: 0.9.6
>       Latest version installed: [ Not Installed ]
[snip]
> 
> But I *DO* have it installed....
> 
> daevid ~ # emerge -av trac
> [ebuild   R   ] www-apps/trac-0.9.6  USE="cgi sqlite -enscript -fastcgi
> -postgres -silvercity -vhosts" 331 kB 
> 
> Then if I do an 'esync'

esync is the esearch tool to emerge --sync, and then eupdatedb
afterwards.  eupdatedb is the tool to update the esearch database I
mentioned earlier.

>  it shows (and in some kind of ironic slap in my
> face, THEN it shows me there is an update, so I have to re-emerge it to be
> current):

you shouldn't have to re-emerge it.  portage knows about the most recent
version all the time, regardless of what esearch shows you.

> *  www-apps/trac
>       Latest version available: 0.10.1
>       Latest version installed: 0.9.6
[snip]

this doesn't mean that you will have to re-install.  (someone can
correct me here, but) I think this means that 0.10.1 is available, but
not installed on your system probably because of masking.

> Why can't portage just be smart enough (and "smart" is a very generous term
> for the code neede to update this) to update whatever
> record/file/log/whatever it is that shows what I have installed?!

aahhh, the penny drops.  esearch is not "part" of portage, it's a tool
written by David Peter (?) to help you search the portage filesystem
easier.

There are other tools that don't require the database update, but I'll
leave that flame war for someone else to start ;)

> I've added this as a bug since I didn't see one in there already:
> http://bugs.gentoo.org/show_bug.cgi?id=155452

it will probably be marked wontfix or something like that.

You could make it practise to run eupdatedb everytime you run emerge
--sync, but that's up to you.

cya,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

What color is a chameleon on a mirror?

-- 
gentoo-user@gentoo.org mailing list

Reply via email to