From: y0169.zhang Date: Tue, 20 Dec 2016 03:48:54 +0000 (+0900) Subject: Fix lack of OTHER directory cause rpmlint error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43a41cb1ce78b5bb804f8636c7c1e0608d4a056e;p=tools%2Fdepanneur.git Fix lack of OTHER directory cause rpmlint error Change-Id: I1cff903d3ef39563eaf573afd29aa3182e1e0fc0 --- diff --git a/depanneur b/depanneur index 203047c..6352df1 100755 --- a/depanneur +++ b/depanneur @@ -1922,6 +1922,10 @@ sub build_package { if ( -d "$builddir") { my_system("rm -rf $builddir"); } + my $otherdir = "$scratch/home/abuild/rpmbuild/OTHER/"; + if ( ! -d "$otherdir") { + my_system("sudo /bin/mkdir -p $otherdir"); + } my $project_base_path = $to_build{$name}->{project_base_path}; my_system("sudo /bin/mkdir -p $builddir"); my $mount = "sudo /bin/mount -o bind $project_base_path $builddir";