Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273284 - java-config-2.1.8 fails with python-2.6
Summary: java-config-2.1.8 fails with python-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 02:18 UTC by Guillaume Horel
Modified: 2009-06-09 06:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Horel 2009-06-09 02:18:31 UTC
java-config fails to list the installed packages (--list-available-packages) if run with python-2.6. Other options seem to work fine.

Reproducible: Always

Steps to Reproduce:
1.java-config -l
2. watch it fail
3.

Actual Results:  
Traceback (most recent call last):                                           
  File "/usr/bin/java-config-2", line 369, in <module>                       
    (options, args) = parser.parse_args(args=args)                           
  File "/usr/lib/python2.6/optparse.py", line 1381, in parse_args            
    stop = self._process_args(largs, rargs, values)                          
  File "/usr/lib/python2.6/optparse.py", line 1425, in _process_args         
    self._process_short_opts(rargs, values)                                  
  File "/usr/lib/python2.6/optparse.py", line 1532, in _process_short_opts   
    option.process(opt, value, values, self)                                 
  File "/usr/lib/python2.6/optparse.py", line 775, in process                
    self.action, self.dest, opt, value, values, parser)                      
  File "/usr/lib/python2.6/optparse.py", line 795, in take_action            
    self.callback(self, opt, value, parser, *args, **kwargs)                 
  File "/usr/bin/java-config-2", line 133, in list_available_packages        
    for package in manager.get_packages().itervalues():                      
  File "/usr/lib/python2.6/site-packages/java_config_2/EnvironmentManager.py", line 156, in get_packages
    self.load_packages()                                                                                
  File "/usr/lib/python2.6/site-packages/java_config_2/EnvironmentManager.py", line 84, in load_packages
    for package in iter(glob(self.pkg_path) % "*" ):
TypeError: unsupported operand type(s) for %: 'list' and 'str'


Expected Results:  
list the java packages installed
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2009-06-09 06:42:09 UTC
fixed in 2.1.8-r1.

fix will be committed to trunk shortly