passing an absolute path for sources_list to cache.update does not work

Bug #1693941 reported by Bryan Seitz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using python-apt 1.1.0~beta1build1.

Calling cache like such:

cache = apt.Cache(memonly=True, rootdir='/home/seitz/tmp/apt_root')
cache.update(sources_list='/home/seitz/tmp/apt_root/etc/apt/sources-zesty.list')

Would produce an empty cache :( If I copy the contents of sources-zesty.list to sources.list in that same directory and pass that path as an argument, it functions properly. I am looping over several Ubuntu releases as including them all in one sources.list caused conflicts.

Please advise.

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.