Changeset 1991326 for BLFS/xsl


Ignore:
Timestamp:
10/30/2013 03:51:56 PM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
adc85de
Parents:
04ba336
Message:

Merge trunk r3741 (error handling)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r04ba336 r1991326  
    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.