From 5bd6a279dc3f590e14176f14d5aa4e036e25fddb0a346d87e5ba8f1e858ed500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Wed, 11 Dec 2019 14:28:50 +0000 Subject: [PATCH] fix rpm posttrans scriptlet OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=519 --- python-rpm.spec | 2 +- rpm.spec | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/python-rpm.spec b/python-rpm.spec index d0e8999..c4f8c79 100644 --- a/python-rpm.spec +++ b/python-rpm.spec @@ -13,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # diff --git a/rpm.spec b/rpm.spec index 53d5181..750003d 100644 --- a/rpm.spec +++ b/rpm.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -392,7 +392,8 @@ if test ! -L var/lib/rpm ; then mv -f var/lib/rpm/.[!.]* usr/lib/sysimage/rpm/ mv -f var/lib/rpm/* usr/lib/sysimage/rpm/ fi - rmdir var/lib/rpm && ln -s ../../usr/lib/sysimage/rpm var/lib/rpm + test -d var/lib/rpm && rmdir var/lib/rpm + test -e var/lib/rpm || ln -s ../../usr/lib/sysimage/rpm var/lib/rpm fi %files -f rpm.lang