I took my first dive into Python on christmas day, so you know what to expect in terms of quality ;) (very nice language BTW) This code is totaly untested, all commands are commented out (apart from backup stuff). You can run it in its current state and it *should* just print what its doing. cd /usr/portage && python ~/pkgmove.py net-im/gaim no-cat/gaim Next step in development is to actually test it. If anyone has their own CVS server I can do some testing on that would be super! Usual feedback welcome...
Created attachment 22750 [details] pkgmove 0.1
Created attachment 22796 [details] movepkg.py I wrote a similar tool, already used it in the gentoo tree (Usage: cd /usr/portage && ~/movepkg.py old-cat/pkg new-cat)
ahhh nuts... I should have asked around beforehand. I'd like to continue improving this anyway.
OK, I'm back with 0.2 - which is quite a big difference from 0.1. lanius: I used your method of checking which profiles/updates file to use (I liked it), is that OK with you? I've not tested on the official Gentoo CVS server yet, but it should work fine - it does on my local repository anyway.
Created attachment 22993 [details] pkgmove-0.2
of course it's ok, i see that my version lacks some features ;)
Created attachment 23022 [details] epkgmove-0.3 Some small changes and name changed to epkgmove because my dog said to.
JFYI, 0.3 is working fine on the official repository.
There is a tiny typo in the 0.3 attached here, please use the one from http://dev.gentoo.org/~port001/DevTools/epkgmove/
Finally added to app-portage/gentoolkit-dev-0.2.0_pre2. Great script. Ian, could you continue maintainance in src/epkgmove in the gentoolkit cvs module? Please don't make any gentoolkit-dev releases unless it's bleedingly necessary, but rather open a bug when there's a major fix that needs a new version, and I'll issue a new release.