~aptdaemon-developers/aptdaemon/main

Viewing all changes in revision 853.

  • Committer: Martin Pitt
  • Date: 2012-08-23 12:41:59 UTC
  • Revision ID: martin.pitt@ubuntu.com-20120823124159-lhh0rcnhxca5me36
pkcompat: Fix get_files()

Do not open the .list file in text mode and then call decode() on it, as that
will try to decode a string.

Also narrow down the bare "except:" (which hid this bug) to only intercepting
IOErrors.

Add test case.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: