There's no real point doing that: + if path.endswith('InRelease'): + data = os.fdopen(apt_pkg.open_maybe_clear_signed_file(path)) + else: + data = open(path)
Just use the open_maybe_clear_signed_file path all the time, that's why it's "maybe" after all. + for relfile in ['Release', 'InRelease']: I'd prefer that the other way around. Would be nice if you could send a git commit without the changelog entry upstream, then we can apply it to the git repository. Best with a commit message like this: apt/utils.py: changes to parse InRelease files [or better something starting with a verb] <LONG DESCRIPTION> LP: #1503979 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1503979 Title: ubuntu-support-status throws exeption No date tag found (regression) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1503979/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs