more defensive

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=520
This commit is contained in:
Michael Schröder 2019-12-11 14:45:53 +00:00 committed by Git OBS Bridge
parent 5bd6a279dc
commit 4351331244

View File

@ -373,6 +373,7 @@ if test ! -L var/lib/rpm -a -f var/lib/rpm/Packages -a ! -f usr/lib/sysimage/rpm
fi
test -f usr/lib/sysimage/rpm/Packages || rpmdb --initdb
test -e var/lib/rpm || ln -s ../../usr/lib/sysimage/rpm var/lib/rpm
%posttrans
# var/lib/rpm migration