setup_native/scripts/install_linux.sh |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit f8b5e1cb1e2a0b294b7c967a8e040e11d2da74f7
Author: Miklos Vajna <vmik...@suse.cz>
Date:   Sun Nov 11 14:06:41 2012 +0100

    setup_native: get install_linux.sh working again
    
    1) Hide rpm database dir like the old Java installer GUI did, so the
    user sees a single /opt directory only, like with dev-install.
    
    2) Allow installing to an existing directory, no reason not to allow this.
    
    3) Use --nodeps when using a custom dbpath, since in that case even
    /bin/sh won't be provided by anything.
    
    Change-Id: I70d74cc5db287668f4c926005001e05096f43a10

diff --git a/setup_native/scripts/install_linux.sh 
b/setup_native/scripts/install_linux.sh
index c33fe98..9174375 100644
--- a/setup_native/scripts/install_linux.sh
+++ b/setup_native/scripts/install_linux.sh
@@ -94,6 +94,7 @@ done
 if [ $# != 2 ]
 then
   echo $USAGE
+  echo "Example: $0 . ~/libreoffice"
   exit 2
 fi
 
@@ -134,7 +135,7 @@ fi
 #
 
 INSTALLDIR=$2
-RPM_DB_PATH=${INSTALLDIR}/var/lib/rpm
+RPM_DB_PATH=${INSTALLDIR}/.RPM_OFFICE_DATABASE
 
 # Check for versionrc
 if [ -f ${INSTALLDIR}/program/versionrc ]; then VERSIONRC=versionrc; fi
@@ -206,12 +207,6 @@ then
 else
   rmdir ${INSTALLDIR} 2>/dev/null
 
-  if [ -d  ${INSTALLDIR} -a "$ADD" = "no" ]
-  then
-    printf "\n$0: ${INSTALLDIR} exists and is not empty.\n"
-    exit 2
-  fi
-
   mkdir -p $RPM_DB_PATH || exit 2
   # XXX why ? XXX
   chmod 700 $RPM_DB_PATH
@@ -261,7 +256,7 @@ echo "Installing the RPMs"
 
 ABSROOT=`cd ${INSTALLDIR}; pwd`
 RELOCATIONS=`rpm -qp --qf "--relocate %{PREFIXES}=${ABSROOT}%{PREFIXES} \n" 
$RPMLIST | sort -u | tr -d "\012"`
-UserInstallation=\$BRAND_BASE_DIR/../UserInstallation rpm ${DEBIAN_FLAGS} 
$RPMCMD --ignoresize -vh $RELOCATIONS --dbpath $RPM_DB_PATH $RPMLIST
+UserInstallation=\$BRAND_BASE_DIR/../UserInstallation rpm ${DEBIAN_FLAGS} 
--nodeps $RPMCMD --ignoresize -vh $RELOCATIONS --dbpath $RPM_DB_PATH $RPMLIST
 
 #
 # Create a link into the users home directory
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to