Bug#800500: Bug#800499: SystemError on unreadable files in sources.list.d

2015-09-30 Thread Julian Andres Klode
On Wed, Sep 30, 2015 at 10:19:42AM +0200, Sebastien Bacher wrote: > Le 30/09/2015 10:17, Julian Andres Klode a écrit : > > Unreadable sources.list files are an unsupported mode of operation > > and will not be supported in neither APT nor python-apt (which > > directly calls the functions from APT)

Bug#800500: Bug#800499: SystemError on unreadable files in sources.list.d

2015-09-30 Thread Sebastien Bacher
Le 30/09/2015 10:17, Julian Andres Klode a écrit : > Unreadable sources.list files are an unsupported mode of operation > and will not be supported in neither APT nor python-apt (which > directly calls the functions from APT). Does it mean each python-apt client should code should have a try/excep

Bug#800499: SystemError on unreadable files in sources.list.d

2015-09-30 Thread Sebastien Bacher
Package: python-apt Version: 1.1.0~alpha3 Test case: - sudo touch /etc/apt/sources.list.d/bug.list - sudo chmod 770 /etc/apt/sources.list.d/bug.list - python -c "import apt; apt.Cache()" That triggers a SystemError Traceback (most recent call last): File "", line 1, in File "/usr/lib/python