[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57619] trunk/blender/build_files/ build_environment/install_deps.sh: Install_deps.sh: ask suse users whether they want to install packman or not ( can be already installed/enabled from a different URL, Suse repositories management is to complex to be handled automatically at this point ).

Bastien Montagne montagne29 at wanadoo.fr
Thu Jun 20 21:19:11 CEST 2013


Revision: 57619
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57619
Author:   mont29
Date:     2013-06-20 19:19:11 +0000 (Thu, 20 Jun 2013)
Log Message:
-----------
Install_deps.sh: ask suse users whether they want to install packman or not (can be already installed/enabled from a different URL, Suse repositories management is to complex to be handled automatically at this point).

Modified Paths:
--------------
    trunk/blender/build_files/build_environment/install_deps.sh

Modified: trunk/blender/build_files/build_environment/install_deps.sh
===================================================================
--- trunk/blender/build_files/build_environment/install_deps.sh	2013-06-20 19:09:18 UTC (rev 57618)
+++ trunk/blender/build_files/build_environment/install_deps.sh	2013-06-20 19:19:11 UTC (rev 57619)
@@ -1550,7 +1550,7 @@
       tar -C $SRC --transform "s,(.*/?)OpenShadingLanguage-[^/]*(.*),\1OpenShadingLanguage-$OSL_VERSION\2,x" \
           -xf $_src.tar.gz
       cd $_src
-      git checkout blender-fixes
+      #git checkout blender-fixes
       cd $CWD
     fi
 
@@ -2278,8 +2278,18 @@
     fi
 
     _suse_rel="`grep VERSION /etc/SuSE-release | gawk '{print $3}'`"
-    sudo zypper ar -f http://packman.inode.at/suse/openSUSE_$_suse_rel/ packman
 
+    INFO ""
+    INFO "About to add 'packman' repository from http://packman.inode.at/suse/openSUSE_$_suse_rel/"
+    INFO "This is only needed if you do not already have a packman repository enabled..."
+    read -p "Do you want to add this repo (Y/n)?"
+    if [ "$(echo ${REPLY:=Y} | tr [:upper:] [:lower:])" == "y" ]; then
+      INFO "    Installing packman..."
+      sudo zypper ar -f http://packman.inode.at/suse/openSUSE_$_suse_rel/ packman
+      INFO "    Done."
+    else
+      INFO "    Skipping packman installation."
+    fi
     sudo zypper --non-interactive --gpg-auto-import-keys update --auto-agree-with-licenses
   fi
 




More information about the Bf-blender-cvs mailing list