Magellan Linux

Diff of /trunk/mage/usr/lib/mage/smage2.sh

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

revision 1649 by niro, Fri Jan 13 21:04:02 2012 UTC revision 1784 by niro, Mon Mar 12 23:27:53 2012 UTC
# Line 178  then Line 178  then
178   # get the right variables for the split   # get the right variables for the split
179   export PNAME="${subpackage}"   export PNAME="${subpackage}"
180   split_info_${subpackage}   split_info_${subpackage}
181     # fix PCATEGORIE -> PCAT
182     if [[ ! -z ${PCATEGORIE} ]]
183     then
184     PCAT="${PCATEGORIE}"
185     unset PCATEGORIE
186     fi
187   # build md5sum for existing packages   # build md5sum for existing packages
188   generate_package_md5sum \   generate_package_md5sum \
189   --pcat "${PCAT}" \   --pcat "${PCAT}" \
# Line 400  else Line 406  else
406   export SAVED_BINDIR="${BINDIR}"   export SAVED_BINDIR="${BINDIR}"
407   for subpackage in ${SPLIT_PACKAGES}   for subpackage in ${SPLIT_PACKAGES}
408   do   do
409   if typeset -f src_install_${subpackage} > /dev/null   split_info_${subpackage}
410     if [[ ${PKGTYPE} = virtual ]]
411   then   then
412   # export subpackage bindir   echo "virtual package detected; nothing will be build ..."
413   export BINDIR="${SAVED_BINDIR}_${subpackage}"   # automatically set !pkgbuild here too
414   # export PNAME, several internal function and include   msetfeature "!pkgbuild"
415   # rely on this variable   else
416   export PNAME="${subpackage}"   if typeset -f src_install_${subpackage} > /dev/null
417     then
418   echo   # export subpackage bindir
419   echo -en "${COLBLUE}*** ${COLDEFAULT}"   export BINDIR="${SAVED_BINDIR}_${subpackage}"
420   echo -en "  Running ${COLGREEN}split src_install()${COLDEFAULT}"   # export PNAME, several internal function and include
421   echo -en " for subpkg: ${COLBLUE}${PNAME}${COLDEFAULT}"   # rely on this variable
422   echo -e " - basepkg: ${COLBLUE}${SPLIT_PACKAGE_BASE}${COLDEFAULT} ..."   export PNAME="${subpackage}"
423    
424   ( run_resume src_install_${subpackage} || src_install_${subpackage} ) | ${SMAGE_LOG_CMD}   echo
425   die_pipestatus 0 "src_install_${subpackage} failed"   echo -en "${COLBLUE}*** ${COLDEFAULT}"
426   resume_stamp src_install_${subpackage}   echo -en "  Running ${COLGREEN}split src_install()${COLDEFAULT}"
427   step_by_step src_install_${subpackage}   echo -en " for subpkg: ${COLBLUE}${PNAME}${COLDEFAULT}"
428     echo -e " - basepkg: ${COLBLUE}${SPLIT_PACKAGE_BASE}${COLDEFAULT} ..."
429    
430     ( run_resume src_install_${subpackage} || src_install_${subpackage} ) | ${SMAGE_LOG_CMD}
431     die_pipestatus 0 "src_install_${subpackage} failed"
432     resume_stamp src_install_${subpackage}
433     step_by_step src_install_${subpackage}
434     fi
435   fi   fi
436   done   done
437   # restore bindir & pname   # restore bindir & pname
# Line 579  else Line 593  else
593   # get the right variables for the split   # get the right variables for the split
594   export PNAME="${subpackage}"   export PNAME="${subpackage}"
595   split_info_${PNAME}   split_info_${PNAME}
596     # fix PCATEGORIE -> PCAT
597     if [[ ! -z ${PCATEGORIE} ]]
598     then
599     PCAT="${PCATEGORIE}"
600     unset PCATEGORIE
601     fi
602    
603   # jump to next one if !pkgbuild is set in split_info   # jump to next one if !pkgbuild is set in split_info
604   mqueryfeature "!pkgbuild" && continue   mqueryfeature "!pkgbuild" && continue

Legend:
Removed from v.1649  
changed lines
  Added in v.1784