- Use ls . instead of * to avoid error when nothing is in alternatives

directory

OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=40
This commit is contained in:
Tomáš Chvátal 2016-09-07 12:31:49 +00:00 committed by Git OBS Bridge
parent 3a63d9d005
commit ab142c15b4
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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