python script to backup installed packages

2010-02-11 Thread Adam Vande More
Sometimes you have need to backup installed packages. I realize most port management tools do this automatically, but if you're on a system with a lot of packages installed and one port management tool fails and you use another to fix it, /usr/ports/packages can become jumbled. Anyways, I've

Re: python script to backup installed packages

2010-02-11 Thread Giorgos Keramidas
On Thu, 11 Feb 2010 10:15:12 -0600, Adam Vande More amvandem...@gmail.com wrote: Sometimes you have need to backup installed packages. I realize most port management tools do this automatically, but if you're on a system with a lot of packages installed and one port management tool fails and

Re: python script to backup installed packages

2010-02-11 Thread Adam Vande More
On Thu, Feb 11, 2010 at 1:31 PM, Giorgos Keramidas keram...@ceid.upatras.gr wrote: My own version groks an os.environ['EXTRA_PKG_CREATE_ARGS'] option too and inserts the extra options before the [-b, package] arguments of pkg_create, so that I can run the script for example with: env

Re: python script to backup installed packages

2010-02-11 Thread Giorgos Keramidas
On Thu, 11 Feb 2010 20:35:16 -0600, Adam Vande More amvandem...@gmail.com wrote: Thanks for the tips, I may add some of your functionality to my own. I think I might add a couple more features like accepting a backup path from the command line and an auto create for the dir if it doesn't