[Yum-devel] yum 3.0.2

seth vidal skvidal at linux.duke.edu
Wed Jan 3 06:11:00 UTC 2007


On Tue, 2007-01-02 at 20:32 +0100, Terje Rosten wrote:
> * seth vidal
> | 
> | let us know what breaks,
> 
> Seems liks this commit:
> 
>  PatchSet 1769 
>  Date: 2006/12/05 12:20:13
>  Author: skvidal
>  Branch: yum-3_0_X
>  Tag: (none) 
>  Log:
> 
>  - make old obsoletes be ignored by install/update command
>  - fix a variety of minor issues created by recent changes
> 
>  Members: 
> 	 yum/__init__.py:1.259.2.5->1.259.2.6 
> 	 yum/packageSack.py:1.18.2.3->1.18.2.4 
> 
> 
> breaks groupinstall, the problem might be this part:
> 
> -                
> -        return highdict.values()
> +        
> +        #this is a list of lists - break it back out into a single list
> +        returnlist = []
> +        for polst in highdict.values():
> +            for po in polst:
> +                returnlist.append(po)
> +
> +        return returnlist
>             
>      def simplePkgList(self):
>          """returns a list of pkg tuples (n, a, e, v, r) optionally from a single repoid"""
> 
> I get this with 3.0.2:
> 
> $ yum groupinstall Virtualization
> Loading "skip-broken" plugin
> Loading "installonlyn" plugin
> Setting up Group Process
> Setting up repositories
> Setting up repositories
> Reading repository metadata in from local files
> Traceback (most recent call last):
>   File "yummain.py", line 193, in ?
>     main(sys.argv[1:])
>   File "yummain.py", line 94, in main
>     result, resultmsgs = base.doCommands()
>   File "/tmp/yum-3.0.2/cli.py", line 356, in doCommands
>     return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
>   File "/tmp/yum-3.0.2/yumcommands.py", line 228, in doCommand
>     return base.installGroups(extcmds)
>   File "/tmp/yum-3.0.2/cli.py", line 1040, in installGroups
>     txmbrs = self.selectGroup(group.groupid)
>   File "/tmp/yum-3.0.2/yum/__init__.py", line 1390, in selectGroup
>     txmbrs = self.install(name = pkg)
>   File "/tmp/yum-3.0.2/yum/__init__.py", line 1729, in install
>     lst.extend(self.bestPackagesFromList(pkg))
>   File "/tmp/yum-3.0.2/yum/__init__.py", line 1640, in bestPackagesFromList
>     for po in pkglist:
> TypeError: iteration over non-sequence
> 
> 

Thank you - got it - List of Lists thing with ListPackageSack

patch is :
https://lists.dulug.duke.edu/pipermail/yum-cvs-commits/2007-January/001249.html


If no one sees anything brazen and stupid by friday I'll put out a 3.0.3
to fix this up.

Thanks,
-sv






More information about the Yum-devel mailing list