Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1509 - a /var/cache/edb/world utility for rc6 --> 1.0 users
Summary: a /var/cache/edb/world utility for rc6 --> 1.0 users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-03 16:57 UTC by Matthew Kennedy
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
worldsync (worldsync,1.71 KB, text/plain)
2002-04-03 16:59 UTC, Matthew Kennedy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy 2002-04-03 16:57:24 UTC
Howdy Gentoo developers,

When I made the transition from Gentoo rc6 to 1.0 I couldn't see a clear way to
sync my /var/cache/edb/world file. Thus I developed the attached python code to
populate my world file.

First backup your current /var/cache/edb/world.

After downloading the attachment, save it and give it execute permissions (chmod
+x worldsync). As root execute 

   /path/to/worldsync >/tmp/world

(worldsync needs to be run as root, becuase it calls emerge). Then "less
/tmp/world" and check that it looks sane. If it does then, 

   mv /tmp/world /var/cache/edb/world

Test with,

   emerge --update world --pretend

Regards,

Matthew
Comment 1 Matthew Kennedy 2002-04-03 16:59:12 UTC
Created attachment 494 [details]
worldsync

* python code to generate a new world file for users who have made the rc6 to
1.0 migration.
* no special deps, just python, portage and gentoolkit
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-04-04 00:09:45 UTC
I think this is more appropriate for the mail lists.  We aren't going to
incorporate a special world update tool into Portage itself, although many users
may like to use it.
Comment 3 Jason Draugluin Ritchie 2002-04-04 00:46:45 UTC
For those interested in using this, note that it requires gentoolkit because it
uses qpkg.
Comment 4 Michael Thompson 2002-04-04 13:51:25 UTC
Note that it can have duplicates in the output.  Works great when piped like this:

./worldsync 
| sort | uniq > /var/cache/edb/world

Thanks for creating this!
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-14 16:44:26 UTC
Note, recently the location on qpkg changed from /usr/sbin/qpkg to
/usr/bin/qpkg. You need to edit worldsync to reflect that.