diff --git a/update-alternatives.changes b/update-alternatives.changes index 3115550..ce92997 100644 --- a/update-alternatives.changes +++ b/update-alternatives.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 7 12:31:05 UTC 2016 - tchvatal@suse.com + +- Use ls . instead of * to avoid error when nothing is in alternatives + directory + ------------------------------------------------------------------- Tue May 31 11:47:57 UTC 2016 - tchvatal@suse.com diff --git a/update-alternatives.spec b/update-alternatives.spec index bd3feba..2dd7193 100644 --- a/update-alternatives.spec +++ b/update-alternatives.spec @@ -77,7 +77,7 @@ install -m 0644 man/%{name}.1 %{buildroot}/%{_mandir}/man1/ touch %{_localstatedir}/log/alternatives.log # Fix broken alternatives list bnc#969171 cd %{_sysconfdir}/alternatives/ -for i in * ; do +for i in $(ls .) ; do # continue on errors but still print them out update-alternatives --auto $i || : done