[Yum-devel] [yum-commits] 2 commits - yum-debug-dump.py yum-debug-restore.py

James Antill james at fedoraproject.org
Fri Jan 22 04:44:27 UTC 2010


On Thu, 2010-01-21 at 23:26 -0500, Seth Vidal wrote:
> 
> On Fri, 22 Jan 2010, James Antill wrote:
> 
> >
> > commit d0301f6e5928786d571f4d32986dc2b5bb03c095
> > Author: James Antill <james at and.org>
> > Date:   Thu Jan 21 19:01:24 2010 -0500
> >
> >     A couple of fixes for yum-debug-restore, and can now work across arch.
> >
> >        Add --ignore-arch option.
> >        Don't traceback when not given an argument.
> >        Don't traceback when piped. Eg. | head -2
> >
> > diff --git a/yum-debug-restore.py b/yum-debug-restore.py
> > index 5652972..fd95741 100755
> > --- a/yum-debug-restore.py
> > +++ b/yum-debug-restore.py
> > @@ -52,6 +52,8 @@ def cmd_line():
> >
> >     parser.add_option("--install-latest", action="store_true",
> >                       help="install the latest instead of specific versions")
> > +    parser.add_option("--ignore-arch", action="store_true",
> > +                      help="ignore arch of packages, so you can dump on .i386 and restore on .x86_64")
> 
> seriously?
> 
> Dump on i386 and restore to x86_64?
> 
> why?

 Say you have a .i386 server, and you are moving it's services to
another host which happens to be .x86_64 ... the easiest thing to do is
dump the package set you have installed on the old box and restore it on
the new box.
 Or at least it seemed that way to me :).



More information about the Yum-devel mailing list