Files
community.general/lib/ansible/modules/packaging/os
Marius Gedminas 577d0e43ba apt_repository: check for enabled repositories correctly
Fixes #20754.

Details: UbuntuSourcesList.add_source() had a quick check for PPAs being
already present in the source lists.  The check was looking for the PPAs
URL to be present in self.repo_urls, which should contain all valid and
enabled repositories.

The enabled check in repo_urls was incorrect.  It was checking the tuple's
2nd item (which means "valid") and ignoring the 3rd item (which means
"enabled").

self.files contains tuples (line_number, valid, enabled, source_line,
comment_text).  Ideally it would be using named tuples instead of
indexing, to avoid bugs like that, but Python 2.4 didn't have named
tuples, so we can't do that (yet).
2017-02-07 18:42:57 -08:00
..
2016-12-08 11:22:25 -05:00
2017-01-29 07:28:53 +00:00
2017-01-27 17:08:02 -08:00
2017-02-02 11:45:22 -08:00
2016-12-13 13:51:13 -05:00
2016-12-13 13:51:13 -05:00
2016-12-08 11:25:35 -05:00
2017-01-28 00:12:11 -08:00
2017-01-30 15:01:47 -08:00
2017-01-29 07:28:53 +00:00
2017-01-27 17:08:02 -08:00
2017-01-29 07:28:53 +00:00
2017-02-02 11:45:22 -08:00
2017-01-29 07:28:53 +00:00
2017-01-29 07:28:53 +00:00
2016-12-13 13:51:13 -05:00
2017-02-02 11:45:22 -08:00
2017-01-27 17:08:02 -08:00
2017-02-02 11:45:22 -08:00
2017-01-29 07:28:53 +00:00
2016-12-13 13:51:13 -05:00
2017-02-02 11:45:22 -08:00
2017-02-02 11:45:22 -08:00