xdeb will not work if sources are only in sources.list.d

Bug #878819 reported by Wookey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdeb (Ubuntu)
New
Undecided
Unassigned

Bug Description

If there is no sources.list present in a chroot (but there are sources in sources.list.d apt is happy, but xdeb doesn't work.
This is the normal state of a multistrap-created chroot.

xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild libcap2
gives:

Traceback (most recent call last):
  File "/usr/bin/xdeb", line 939, in <module>
    main()
  File "/usr/bin/xdeb", line 831, in main
    aptutils.init(options)
  File "/usr/lib/xdeb/aptutils.py", line 127, in init
    system_sources_list_file = open(system_sources_list)
IOError: [Errno 2] No such file or directory: '/etc/apt/sources.list'

If an empty sources.list is created to shut it up you get:
Configuration is:
Default configs parsed: ['/etc/xdeb/xdeb.cfg']
.....
apt-ftparchive generate apt.conf
 .:terminate called after throwing an instance of 'std::out_of_range'
  what(): basic_string::substr
Traceback (most recent call last):
  File "/usr/bin/xdeb", line 939, in <module>
    main()
  File "/usr/bin/xdeb", line 831, in main
    aptutils.init(options)
  File "/usr/lib/xdeb/aptutils.py", line 155, in init
    update_apt_repository(options)
  File "/usr/lib/xdeb/aptutils.py", line 111, in update_apt_repository
    cwd=options.destdir)
  File "/usr/lib/xdeb/utils.py", line 29, in spawn
    raise SubprocessException, ret
utils.SubprocessException: -6

Wookey (wookey)
affects: ubuntu → xdeb (Ubuntu)
Revision history for this message
Loïc Minier (lool) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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