Changeset 14bcaee for common/libs


Ignore:
Timestamp:
03/20/2017 02:12:25 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
89b7cce
Parents:
76cf25f
Message:

Merge trunk r3926-27

Location:
common/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    r76cf25f r14bcaee  
    193193        -i $BUILDDIR$BLFS_ROOT/scripts/*lynx
    194194  fi
    195 fi
    196 # The  book instructions for CA certificates suppose that the cerdata.txt
    197 # file is in the same directory as make-ca.sh-<version>. This is not the
    198 # case with our default instructions. Just remove the "cd $UNPACKDIR" here.
    199 if test -f $BUILDDIR$BLFS_ROOT/scripts/*cacerts; then
    200   sed -i '/cd \$UNPACKDIR/d' $BUILDDIR$BLFS_ROOT/scripts/*cacerts
    201195fi
    202196# At last generates the build Makefile
  • common/libs/func_validate_configs.sh

    r76cf25f r14bcaee  
    8080    echo -e "`eval echo ${ERROR_MSG_pt1}`" >&2
    8181    echo -e "`eval echo ${ERROR_MSG_pt2}`" >&2
     82    echo -e "${DD_BORDER}\n"
     83    exit 1
     84  }
     85
     86# This function is only used when testing package management files.
     87  write_pkg_and_die() {
     88    echo -e "\n${DD_BORDER}"
     89    echo    "Package management is requested but" >&2
     90    echo -e $* >&2
    8291    echo -e "${DD_BORDER}\n"
    8392    exit 1
     
    193202                 ;;
    194203
     204        # Case of PKGMNGT: two files, packageManager.xml and packInstall.sh
     205        # must exist in $PKGMNGTDIR:
     206      PKGMNGT) echo -e "`eval echo $PARAM_VALS`"
     207               if [ ! -e "$PKGMNGTDIR/packageManager.xml" ]; then
     208                 write_pkg_and_die $PKGMNGTDIR/packageManager.xml does not exist
     209               fi
     210               if [ ! -e "$PKGMNGTDIR/packInstall.sh" ]; then
     211                 write_pkg_and_die $PKGMNGTDIR/packInstall.sh does not exist
     212               fi
     213               if [ ! -s "$PKGMNGTDIR/packageManager.xml" ]; then
     214                 write_pkg_and_die $PKGMNGTDIR/packageManager.xml has zero size
     215               fi
     216               if [ ! -s "$PKGMNGTDIR/packInstall.sh" ]; then
     217                 write_pkg_and_die $PKGMNGTDIR/packInstall.sh has zero size
     218               fi
     219               if [ ! -r "$PKGMNGTDIR/packageManager.xml" ]; then
     220                 write_pkg_and_die $PKGMNGTDIR/packageManager.xml is not readable
     221               fi
     222               if [ ! -r "$PKGMNGTDIR/packInstall.sh" ]; then
     223                 write_pkg_and_die $PKGMNGTDIR/packInstall.sh is not readable
     224               fi
     225               ;;
    195226      # Display non-validated envars found in ${PROGNAME}_PARAM_LIST
    196227      * ) echo -e "`eval echo $PARAM_VALS`" ;;
Note: See TracChangeset for help on using the changeset viewer.