Ok, I have a tentative fix for this bug.

Here's my test sources.list before (containing both valid and invalid
entries):

# Valid binary entries
deb http://ports.ubuntu.com/ubuntu-ports natty main restricted
deb http://ports.ubuntu.com/ubuntu-ports natty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports natty-updates main restricted

# Valid source entries
deb-src http://ports.ubuntu.com/ubuntu-ports natty main restricted
deb-src http://security.ubuntu.com natty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu natty-updates main restricted

# Invalid binary entry
deb http://archive.ubuntu.com/ubuntu natty-proposed main restricted

After running the modified python-apt, I get:

# Valid binary entries
deb http://ports.ubuntu.com/ubuntu-ports natty main restricted universe 
multiverse
deb http://ports.ubuntu.com/ubuntu-ports natty-security main restricted 
universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports natty-updates main restricted universe 
multiverse

# Valid source entries
deb-src http://ports.ubuntu.com/ubuntu-ports natty main restricted universe 
multiverse
deb-src http://security.ubuntu.com natty-security main restricted universe 
multiverse
deb-src http://archive.ubuntu.com/ubuntu natty-updates main restricted universe 
multiverse

# Invalid binary entry
deb http://archive.ubuntu.com/ubuntu natty-proposed main restricted

-- 
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