From: jingui.ren Date: Thu, 26 Jul 2018 06:01:43 +0000 (+0800) Subject: add --repo-cache parameter to deliver X-Git-Tag: submit/devel/20190730.074511~2^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65a657dc849829252637f7b5f1bede7a490973c9;p=tools%2Fdepanneur.git add --repo-cache parameter to deliver Change-Id: I7813e88fbba9a62f06be298c817fc7b80b5d85a8 --- diff --git a/depanneur b/depanneur index fb7123a..e2eddce 100755 --- a/depanneur +++ b/depanneur @@ -1912,6 +1912,7 @@ sub build_package { push @args, "--ccache" if ($ccache); push @args, "--icecream '$icecream'" if ($icecream); push @args, "--baselibs" if ($create_baselibs); + push @args, "--repo-cache '$order_dir'/.repo.cache"; if (! $extra_packs eq "") { my $packs = join(' ', split(',', $extra_packs)); push @args, "--extra-packs=\"$packs\""; @@ -2128,8 +2129,8 @@ sub build_package { } my_system("'$build_dir'/createdirdeps '$rpm_repo_path' > '$order_dir'/.repo.cache.local "); - my_system("echo D: >> '$order_dir'/.repo.cache.local"); - my_system("cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); + my_system("sudo echo D: >> '$order_dir'/.repo.cache.local"); + my_system("sudo cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); } info("finished building $name"); $packages_built = 1; @@ -2459,7 +2460,7 @@ sub generate_depends() { } } # Merge local repo cache and remote repo cache - my_system("cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); + my_system("sudo cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); if ($repos_setup == 0 ) { error("repo cache creation failed..."); @@ -2641,7 +2642,7 @@ foreach my $repo (@package_repos) { } } # Merge local repo cache and remote repo cache -my_system("cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); +my_system("sudo cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); if ($repos_setup == 0 ) { error("repo cache creation failed...");