Ok, the issue is that some template have template.type set to None. I updated 
the condition to return a match if:
template.type == source.type or template.type is None or "deb"

I also tried the unit tests with the change (sorry, I completely forgot
to do it last time) and they now pass properly.

** Patch added: "Update diff"
   
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/760035/+attachment/2069340/+files/bug760035.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/760035

Title:
  Ubuntu.info template doesn't allow deb-src lines using
  archive.ubuntu.com on ports architectures

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to