- 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:
parent
3a63d9d005
commit
ab142c15b4
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user