Changeset bbcdeab for BLFS


Ignore:
Timestamp:
10/30/2013 03:44:46 PM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
ef32ce5
Parents:
b81c951
Message:

Handle errors while installing blfs tools and makes the error
message more accurate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    rb81c951 rbbcdeab  
    434434      <xsl:value-of select="id('bootscripts')//itemizedlist//ulink/@url"/><xsl:text>
    435435BOOTPACKG=$(basename $URL)
    436 [[ ! -f "$BOOTPACKG" ]] &amp;&amp; { wget -T 30 -t 5 $URL; rm -f unpacked; }
     436if [[ ! -f $BOOTPACKG ]] ; then
     437  if [[ -f $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG ]] ; then
     438    cp $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG $BOOTPACKG
     439  elif [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then
     440    cp $SRC_ARCHIVE/$BOOTPACKG $BOOTPACKG
     441  else
     442    wget -T 30 -t 5 $URL
     443    cp $BOOTPACKG $SRC_ARCHIVE
     444  fi
     445  rm -f unpacked
     446fi
     447
    437448if [[ -e unpacked ]] ; then
    438449  UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'`
Note: See TracChangeset for help on using the changeset viewer.