crashes with 3rd-party repositories in list

Bug #84897 reported by Pavel Rojtberg
6
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

error trace:
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(data_dir, options, file)
  File "/usr/lib/python2.5/site-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python2.5/site-packages/softwareproperties/SoftwareProperties.py", line 49, in __init__
    self.sourceslist = SourcesList()
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 228, in __init__
    self.refresh()
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 244, in refresh
    self.matcher.match(source)
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 412, in match
    elif (template.is_mirror(source.uri) and
  File "/usr/lib/python2.5/site-packages/aptsources/distinfo.py", line 59, in is_mirror
    return self.mirror_set[hostname].has_repository(proto, dir)
  File "/usr/lib/python2.5/site-packages/aptsources/distinfo.py", line 95, in has_repository
    self.repositories)) > 0
  File "/usr/lib/python2.5/site-packages/aptsources/distinfo.py", line 94, in <lambda>
    return len(filter(lambda r: (r.proto == proto) and dir in r.dir,
TypeError: 'in <string>' requires string as left operand

Revision history for this message
Rich Johnson (nixternal) wrote :

Which 3rd party repositories are you trying to use?

With the stock repositories do you see this issue?

Changed in software-properties:
status: Unconfirmed → Needs Info
Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

here is my sources list

the third party repositories are commented out twice so softwareproperties does not see them. if you remove one #, it crashes

Michael Vogt (mvo)
Changed in software-properties:
importance: Undecided → Medium
status: Needs Info → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

I fixed this in my local repository and it will be part of my next upload.

Cheers,
 Michael

Changed in software-properties:
assignee: nobody → mvo
status: Confirmed → Fix Committed
Michael Vogt (mvo)
Changed in software-properties:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.