fixing bug 2866, create some tmp files to avoid rpmbuild warnings

This commit is contained in:
wanghuaz 2013-10-31 13:21:04 +08:00
parent 735127be0b
commit d910e66cee

View File

@ -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/";