After the repository is added, the ${::apt::sources_list_d}/${sources_list_d_filename...
authorNick Berard <nicobn@gmail.com>
Sat, 2 Jul 2016 00:31:05 +0000 (17:31 -0700)
committerNick Berard <nicobn@gmail.com>
Sat, 2 Jul 2016 00:31:05 +0000 (17:31 -0700)
commit38263ac768349bf0eab56194aa70f4a78fb664af
tree94f4ca54f481be48e2dc45fe8fa7e82837286516
parentae8f96a0935538ab9974e2c0b40192fa77b55cb7
After the repository is added, the ${::apt::sources_list_d}/${sources_list_d_filename} file is created as an empty file.
The unless condition of Exec["add-apt-repository-${name}"] calls test -s, which returns 1 if the file is empty. Because
the file is empty, the unless condition is never true and the repository is added on every execution. This commit
replaces the -s test condition with -f, which is true if the file exists or false otherwise.
manifests/ppa.pp