Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36663 - pkgmove - A simple tool for moving packages in CVS
Summary: pkgmove - A simple tool for moving packages in CVS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 09:50 UTC by Ian Leitch (RETIRED)
Modified: 2004-02-07 18:39 UTC (History)
1 user (show)

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


Attachments
pkgmove 0.1 (pkgmove.py,5.81 KB, text/plain)
2003-12-28 09:51 UTC, Ian Leitch (RETIRED)
Details
movepkg.py (movepkg.py,3.38 KB, text/plain)
2003-12-29 08:40 UTC, Heinrich Wendel (RETIRED)
Details
pkgmove-0.2 (pkgmove-0.2.py,7.44 KB, text/plain)
2004-01-01 19:55 UTC, Ian Leitch (RETIRED)
Details
epkgmove-0.3 (epkgmove-0.3.py,8.07 KB, text/plain)
2004-01-02 09:23 UTC, Ian Leitch (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Leitch (RETIRED) gentoo-dev 2003-12-28 09:50:56 UTC
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...
Comment 1 Ian Leitch (RETIRED) gentoo-dev 2003-12-28 09:51:41 UTC
Created attachment 22750 [details]
pkgmove 0.1
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-29 08:40:35 UTC
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)
Comment 3 Ian Leitch (RETIRED) gentoo-dev 2003-12-29 11:41:11 UTC
ahhh nuts... I should have asked around beforehand.

I'd like to continue improving this anyway.
Comment 4 Ian Leitch (RETIRED) gentoo-dev 2004-01-01 19:55:08 UTC
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. 
Comment 5 Ian Leitch (RETIRED) gentoo-dev 2004-01-01 19:55:47 UTC
Created attachment 22993 [details]
pkgmove-0.2
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-02 04:02:36 UTC
of course it's ok, i see that my version lacks some features ;)
Comment 7 Ian Leitch (RETIRED) gentoo-dev 2004-01-02 09:23:35 UTC
Created attachment 23022 [details]
epkgmove-0.3

Some small changes and name changed to epkgmove because my dog said to.
Comment 8 Ian Leitch (RETIRED) gentoo-dev 2004-01-02 11:14:05 UTC
JFYI, 0.3 is working fine on the official repository. 
Comment 9 Ian Leitch (RETIRED) gentoo-dev 2004-01-07 12:05:02 UTC
There is a tiny typo in the 0.3 attached here, please use the one from http://dev.gentoo.org/~port001/DevTools/epkgmove/
Comment 10 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-02-07 18:39:55 UTC
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.