From d910e66ceeca5ca8b998fbe22d80682fee6dcd25 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 31 Oct 2013 13:21:04 +0800 Subject: [PATCH] fixing bug 2866, create some tmp files to avoid rpmbuild warnings --- xCAT-buildkit/bin/buildkit | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index e717029f6..9737f0f92 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -1933,6 +1933,10 @@ sub build_kitcomp my $avoiderr = $rpmbuild_dir."/BUILDROOT/prep_".$comp->{basename}; $avoiderr .= "-$comp->{version}-$comp->{release}.$repo{osarch}"; mkpath($avoiderr); + my $current_osarch = `uname -p`; + chomp($current_osarch); + $avoiderr = $rpmbuild_dir."/BUILDROOT/prep_".$comp->{basename}."-$comp->{version}-$comp->{release}.$current_osarch"; + mkpath($avoiderr); $avoiderr = $rpmbuild_dir."/BUILD/"; mkpath($avoiderr); $avoiderr = $rpmbuild_dir."/SRPMS/"; @@ -1979,6 +1983,10 @@ sub build_kitcomp my $avoiderr = $rpmbuild_dir."/BUILDROOT/".$comp->{basename}; $avoiderr .= "-$comp->{version}-$comp->{release}.$repo{osarch}"; mkpath($avoiderr); + my $current_osarch = `uname -p`; + chomp($current_osarch); + $avoiderr = $rpmbuild_dir."/BUILDROOT/".$comp->{basename}."-$comp->{version}-$comp->{release}.$current_osarch"; + mkpath($avoiderr); $avoiderr = $rpmbuild_dir."/BUILD/"; mkpath($avoiderr); $avoiderr = $rpmbuild_dir."/SRPMS/";