Accepting request 539251 from home:RBrownSUSE:branches:Base:System

- Correct %post compatibility symlink for /usr/lib/sysimage/rpm

OBS-URL: https://build.opensuse.org/request/show/539251
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=408
This commit is contained in:
Richard Brown 2017-11-06 10:43:45 +00:00 committed by Git OBS Bridge
parent c3b54b9f96
commit 9f511d469d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 6 10:05:10 UTC 2017 - rbrown@suse.com
- Correct %post compatibility symlink for /usr/lib/sysimage/rpm
-------------------------------------------------------------------
Thu Oct 26 12:10:16 UTC 2017 - rbrown@suse.com

View File

@ -387,7 +387,7 @@ echo -n "%{_target_cpu}-suse-linux-gnueabi" > %{buildroot}/etc/rpm/platform
# var/lib/rpm migration: set forwards compatible symlink for /usr/lib/sysimage/rpm so scriptlets in same transaction will still work
if (test ! -L var/lib/rpm) && (test -f var/lib/rpm/Packages) ; then
rmdir usr/lib/sysimage/rpm
ln -s ../../var/lib/rpm usr/lib/sysimage/rpm
ln -s ../../../var/lib/rpm usr/lib/sysimage/rpm
fi
test -f usr/lib/sysimage/rpm/Packages || rpmdb --initdb