linaro-hwpack-install's grep in /etc/apt/sources.list.d is over broad

Bug #687608 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Low
Unassigned

Bug Description

linaro-hwpack-install does this:

grep -qF "$line" /etc/apt/sources.list.d/* /etc/apt/sources.list

to determine if a line is already present in the apt config. But AIUI apt itself only considers files called *.list in that directory, so it would be better to say

grep -qF "$line" /etc/apt/sources.list.d/*.list /etc/apt/sources.list

Obviously not likely to be a problem when used by linaro-media-create.

Related branches

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 687608] [NEW] linaro-hwpack-install's grep in /etc/apt/sources.list.d is over broad

 status triaged
 importance low

Changed in linaro-image-tools:
importance: Undecided → Low
status: New → Triaged
Milo Casagrande (milo)
Changed in linaro-image-tools:
status: Triaged → Fix Released
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.