adept allows creation of invalid lines in sources.list

Bug #353644 reported by dellcom
2
Affects Status Importance Assigned to Milestone
adept (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: adept

When adding third-party repositories, Adept allows users to save malformed entries in sources.list.
Then the next time it or other GUI package manager is run, it refuses to open and there is no way to use the GUI tool to fix the problem.

One solution would be to have adept check the entries for proper syntax before allowing them to be saved.

This is related to, but different from, the 'malformed line' errors. This is probably the cause of the 'malformed line' errors so abundantly reported.

Revision history for this message
Lars Noodén (larsnooden) wrote :

The lines should match the following syntax:

deb|deb-src uri distribution [component1] [component2] [...]

http://www.debian.org/doc/manuals/repository-howto/repository-howto#using-a-repository

There are modules for checking URIs, they could be used.

The distribution can be a list or hash of strings (jaunty, hardy, hardy-backports, etc.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.