Changeset 2519

Show
Ignore:
Timestamp:
03/20/07 18:47:04 (2 years ago)
Author:
dhozac
Message:

Remove the guest in case of failure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/vserver-build.debootstrap

    r2298 r2519  
    1616# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    1717 
    18 function cleanUp 
    19 { 
    20     test ! -d "$workdir"  || $_RM -rf "$workdir" 
    21 } 
    22  
    2318function init 
    2419{ 
    2520    workdir= 
    2621    mirror= 
    27     trap "cleanUp" EXIT 
    2822} 
    2923 
     
    5650        workdir=$dir 
    5751        dst=$dir/debootstrap.deb 
     52 
     53        base._addGeneratedFile "$workdir" 
    5854         
    5955        findFile DEBOOTSTRAP_URI "$__CONFDIR"/.defaults/apps/debootstrap/uri "$__PKGLIBDEFAULTDIR"/debootstrap.uri