From 1e797ed26b10691c792d591ce80b64e202edaf41 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 6 Mar 2013 08:44:26 +0000 Subject: [PATCH] buildkit buildtar on debian/ubuntu git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-buildkit/bin/buildkit | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 158191080..caf90a123 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -810,6 +810,9 @@ sub kit_cleanrepo if ( -d "$::workdir/tmp" ) { system("rm -Rf $::workdir/tmp "); } + if ( -d "$::workdir/debbuild" ){ + system("rm -Rf $::workdir/debbuild"); + } return 0; } @@ -911,6 +914,9 @@ sub kit_cleantar if ( -d "$::workdir/tmp" ) { system("rm -Rf $::workdir/tmp "); } + if ( -d "$::workdir/debbuild" ){ + system("rm -Rf $::workdir/debbuild"); + } } @@ -944,6 +950,9 @@ sub kit_cleanall if ( -d "$::workdir/tmp" ) { system("rm -Rf $::workdir/tmp "); } + if ( -d "$::workdir/debbuild" ){ + system("rm -Rf $::workdir/debbuild"); + } } @@ -2172,7 +2181,7 @@ sub create_kitconf } } } - # Handle special attrs + # Handle special attrs, these 3 attributes did not defined in the buildkit.conf, special cases. if ( $s eq 'kitrepo' ) { $::kit_config->{$s}{entries}[$li]->{kitreponame} = $se->{kitreponame};