From ab142c15b4263f067914244a78b3c020eb70cba98b27587437a37a5d99b0da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 7 Sep 2016 12:31:49 +0000 Subject: [PATCH] - 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 --- update-alternatives.changes | 6 ++++++ update-alternatives.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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