hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
487 stars 199 forks source link

aptsources: Iterated lens matched less than it should #443

Open josephcsible opened 7 years ago

josephcsible commented 7 years ago
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error = "parse_failed"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/pos = "4"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/line = "1"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/char = "4"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/lens = "lenses/aptsources.aug:59.12-.42:"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/lens/last_matched = "lenses/aptsources.aug:48.9-.17:"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/lens/next_not_matched = "lenses/aptsources.aug:49.9-.37:"
/augeas/files/etc/apt/sources.list.d/steam.list.distUpgrade/error/message = "Iterated lens matched less than it should"

Here's the contents of that file:

deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
raphink commented 7 years ago

The comma separated list of archs is not supported currently. Now there's two options to support it:

josephcsible commented 7 years ago

My personal preference is for the latter. In my mind, the former is a slippery slope that will lead quickly back to the pre-Augeas days.