From 59ca77e6fe64d14d75e7c17971c72813678fad8a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 19 Nov 2013 17:11:59 +0000 Subject: [PATCH] scstadmin: Prevent manual installation if the scstadmin RPM has already been installed git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5130 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scstadmin/Makefile b/scstadmin/Makefile index 93903c936..85608693c 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -69,6 +69,8 @@ all: cd $(SCSTADMIN_DIR) && $(MAKE) $@ install: + @if [ -z "$(DESTDIR)" ] && rpm -q scstadmin >/dev/null 2>&1; then \ + echo Error: the scstadmin RPM must be uninstalled first; false; fi @if ! perl -MExtUtils::MakeMaker -e '' >/dev/null 2>&1; then \ echo Error: the Perl module ExtUtils::MakeMaker must be installed \ first; false; fi