jblakeman / apt-select

Ubuntu Archive Mirror reporting tool for apt sources configuration.
MIT License
333 stars 44 forks source link

apt-select fail to parse sources.list with a specific arch #54

Open epaul13 opened 7 years ago

epaul13 commented 7 years ago

In my sources.list I select [arch=amd64] which breaks apt-select parsing. if I remove [arch=amd64] it works fine.

For instance:

    deb [arch=amd64] http://mymirror/ubuntu trusty main restricted

The problem is in __confirm_apt_source_uri

jblakeman commented 7 years ago

Thanks for reporting this. The parsing of sources.list has never considered [option=value] in the URI, which was an oversight.

epaul13 commented 7 years ago

You're welcome. You're not the first one to oversight a spec ;) Anyway apt-select is very handy. Thanks for that.

2016-12-12 6:47 GMT+01:00 John Blakeman notifications@github.com:

Thanks for reporting this. The parsing of sources.list has never considered [option=value] in the URI, which was, of course, an oversight.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jblakeman/apt-select/issues/54#issuecomment-266348356, or mute the thread https://github.com/notifications/unsubscribe-auth/ANXRNs_jdKOHCnaFgNJxvWqG8Tr9v6wIks5rHOANgaJpZM4LERbc .

martin68 commented 5 years ago

@epaul13 Thank you for point this out. My similar project was also affected, and my commit https://github.com/martin68/apt-smart/commit/6c8b9112170e7facd0473e387ad7dfb17f76e38d should fix it. Since this issue is open for almost 3 years without a fix, you can try my similar project: apt-smart