- Try to autorefresh all the alternatives in post in case some of
them were broken OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=32
This commit is contained in:
parent
8f7f8b5cc0
commit
d15c01c5ed
@ -3,6 +3,8 @@ Wed Apr 6 18:20:13 UTC 2016 - tchvatal@suse.com
|
||||
|
||||
- Fix bnc#969171 by updating even with equal priority
|
||||
* 0001-In-case-of-equal-priority-rather-update.patch
|
||||
- Try to autorefresh all the alternatives in post in case some of
|
||||
them were broken
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 6 12:05:23 UTC 2016 - tchvatal@suse.com
|
||||
|
@ -32,6 +32,7 @@ Patch6: dpkg-sparc.diff
|
||||
Patch7: 0001-In-case-of-equal-priority-rather-update.patch
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: xz
|
||||
Requires(post): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -71,6 +72,11 @@ install -m 0644 man/%{name}.1 %{buildroot}/%{_mandir}/man1/
|
||||
|
||||
%post
|
||||
touch %{_localstatedir}/log/alternatives.log
|
||||
# Fix broken alternatives list bnc#969171
|
||||
cd %{_sysconfdir}/alternatives/
|
||||
for i in * ; do
|
||||
update-alternatives --auto $i
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user