Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107453 - [PATCH] binhost remote metadata cache updates
Summary: [PATCH] binhost remote metadata cache updates
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2005-09-27 14:47 UTC by André Luiz A. G. Carvalho
Modified: 2008-07-03 20:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the version 2.0.51.22-r1, applied to lib/portage/pym/getbinpkg.py (metadata_cache.patch,1.17 KB, text/plain)
2005-09-27 14:51 UTC, André Luiz A. G. Carvalho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Luiz A. G. Carvalho 2005-09-27 14:47:50 UTC
When calling emerge -G, it creates/updates a local cache metadata at
/var/cache/edb/remote_metadata.pickle.

The problem is: if any package was removed from server, it simply ignores this
and keeps it in cache. If we try to install that package, emerge thinks it
exists and tries to install, but fails at the time of download, of course with
404 error.

The patch that I made corrects this in a straight forward way by removing from
the local cache, any package removed from server.

The patch is for version 2.0.51.22-r1 of portage.
Comment 1 André Luiz A. G. Carvalho 2005-09-27 14:51:52 UTC
Created attachment 69377 [details]
Patch for the version 2.0.51.22-r1, applied to lib/portage/pym/getbinpkg.py

This is my proposed patch to it.
Comment 2 Zac Medico gentoo-dev 2006-08-06 19:45:07 UTC
Thanks, this is in svn r4182.
Comment 3 Zac Medico gentoo-dev 2006-08-11 16:13:08 UTC
This has been released in 2.1.1_pre5.
Comment 4 Leho Kraav (:macmaN @lkraav) 2008-07-03 19:59:12 UTC
hi guys

sorry for gravedigging, but i could use some help. im currently doing well with a binhost configuration over apache2 and https, but one thing bugs me. here's the scenario:

* compile a mypackage on BINHOST with one set of USE flags
* emerge -vagk mypackage on CLIENT
* realize that the mypackage needs another set of USE flags, perhaps one removed or smth
* recompile a mypackage on BINHOST with USE="-this that" or similar
* PROBLEM: emerge -vagk mypackage on CLIENT is not able to see the new set of USE flags for mypackage!

so far a really clumsy solution has been:

* BINHOST: mv /usr/portage/packages/mypackage.tbz2 ~
* emerge -vagk mypackage on CLIENT, it doesnt find the package and suggest ebuild, ctrl+c
* BINHOST: mv ~/mypackage.tbz2 /usr/portage/packages/
* emerge -vagk mypackage on CLIENT now sees the correct USE flag set

is this normal, is there something i can do to make CLIENT detect the changed USE flag metadata immediately? my googling skills gave me this bug as the best related result i could find..
Comment 5 Leho Kraav (:macmaN @lkraav) 2008-07-03 20:00:33 UTC
portage is 2.1.4.4