[Yum-devel] [PATCH] Changed archlist set up to handle multilib. BZ 710579

seth vidal skvidal at fedoraproject.org
Wed Jun 8 19:37:31 UTC 2011


On Wed, 2011-06-08 at 13:45 -0400, Nick Jacek wrote:
> ---
>  repodiff.py |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
> 
> diff --git a/repodiff.py b/repodiff.py
> index ef21c2d..e2d3b1f 100755
> --- a/repodiff.py
> +++ b/repodiff.py
> @@ -158,10 +158,12 @@ def parseArgs(args):
>          sys.exit(1)
>  
>      # sort out the comma-separated crap we somehow inherited.    
> -    archlist = ['src']
> +    archlist = []
>      for a in opts.archlist:
>          for arch in a.split(','):
>              archlist.append(arch)
> +    if not archlist :
> +        archlist = ['src']
>  
>      opts.archlist = archlist             
>      
> @@ -172,6 +174,11 @@ def main(args):
>  
>              
>      my = DiffYum()
> +    archlist_changed = False
> +    if opts.archlist and not opts.archlist[0] == 'src':
> +        my.preconf.arch = opts.archlist[0]
> +        archlist_changed = True
> +
>      if opts.quiet:
>          my.conf.debuglevel=0
>          my.doLoggingSetup(my.conf.debuglevel, my.conf.errorlevel)
> @@ -179,6 +186,10 @@ def main(args):
>      my.conf.disable_excludes = ['all']
>      my.dy_shutdown_all_other_repos()
>      my.dy_archlist = opts.archlist
> +    if archlist_changed :
> +        my.dy_archlist += my.arch.archlist
> +        
> +
>      if not opts.quiet: print 'setting up repos'
>      for r in opts.old:
>          if not opts.quiet: print "setting up old repo %s" % r


what's the output of the above look like on a big tree diff with arches
included?

like f14 to f15?

-sv




More information about the Yum-devel mailing list