Magellan Linux

Diff of /trunk/mage-buildserver/helper/buildserver-install.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3112 by niro, Mon Sep 8 15:05:04 2014 UTC revision 3113 by niro, Tue Mar 19 16:12:08 2019 UTC
# Line 81  else Line 81  else
81   die "smagefile '${SMAGESCRIPTSDIR}/${SMAGEFILE}' not found."   die "smagefile '${SMAGESCRIPTSDIR}/${SMAGEFILE}' not found."
82  fi  fi
83    
84  if [ ! -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS ]  if [ ! -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS ]
85  then  then
86   die "${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS missing. run 'buildserver-build-depends first"   die "${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS missing. run 'buildserver-build-depends first"
87  fi  fi
88    
89  SRC_INSTALL_DEPS="$(< ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS)"  SRC_INSTALL_DEPS="$(< ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/SRC_INSTALL_DEPS)"
90    
91  if [[ -z ${SRC_INSTALL_DEPS} ]]  if [[ -z ${SRC_INSTALL_DEPS} ]]
92  then  then
93   die "buildserver-build: SRC_INSTALL_DEPS are empty, aborting."   die "buildserver-build: SRC_INSTALL_DEPS are empty, aborting."
94  fi  fi
95    
96  if [ -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/INSTALL_OK ]  if [ -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/INSTALL_OK ]
97  then  then
98   echo -en "Package "   echo -en "Package "
99   echo -en "${COLRED}${PCAT}/${PNAME}-${PVER}-${PBUILD}${COLDEFAULT}"   echo -en "${COLRED}${PCAT}/${PNAME}-${PVER}-${PBUILD}${COLDEFAULT}"
# Line 101  then Line 101  then
101   exit 3   exit 3
102  fi  fi
103    
104  if [ ! -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/INSTALLED_PREREQUISITES ]  if [ ! -f ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/INSTALLED_PREREQUISITES ]
105  then  then
106   die "${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/INSTALLED_PREREQUISITES missing. run 'buildserver-build-prerequisites first"   die "${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/INSTALLED_PREREQUISITES missing. run 'buildserver-build-prerequisites first"
107  fi  fi
108    
109  #regen_mage_tree  #regen_mage_tree
# Line 119  md5sum_packages ${SRC_INSTALL_DEPS} || d Line 119  md5sum_packages ${SRC_INSTALL_DEPS} || d
119  if install_packages ${SRC_INSTALL_DEPS} || die "installing packages"  if install_packages ${SRC_INSTALL_DEPS} || die "installing packages"
120  then  then
121   install_retval=0   install_retval=0
122   echo 0 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/INSTALL_OK   echo 0 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/INSTALL_OK
123   echo "Install successfull!"   echo "Install successfull!"
124  else  else
125   install_retval=1   install_retval=1
126   echo 1 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}-${PVER}-${PBUILD}/INSTALL_FAILED   echo 1 > ${BUILDSERVER_CACHE_DIR}/build/${PNAME}/${PNAME}-${PVER}-${PBUILD}/INSTALL_FAILED
127   echo "Installation *not* successfull!"   echo "Installation *not* successfull!"
128  fi  fi
129  if [[ ${CLEANPACKAGES} = 1 ]]  if [[ ${CLEANPACKAGES} = 1 ]]

Legend:
Removed from v.3112  
changed lines
  Added in v.3113