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