From: jingui.ren Date: Tue, 7 Aug 2018 03:42:23 +0000 (+0800) Subject: Revert "add --repo-cache parameter to deliver" X-Git-Tag: submit/devel/20190730.074511~2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95c4e5c8b519843f72d4f25bb4d4d3a73e94bfca;p=tools%2Fdepanneur.git Revert "add --repo-cache parameter to deliver" This reverts commit 65a657dc849829252637f7b5f1bede7a490973c9. Change-Id: Ie951a6dea81adca9250886b23154164b7d87a490 --- diff --git a/depanneur b/depanneur index e2eddce..fb7123a 100755 --- a/depanneur +++ b/depanneur @@ -1912,7 +1912,6 @@ 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\""; @@ -2129,8 +2128,8 @@ sub build_package { } my_system("'$build_dir'/createdirdeps '$rpm_repo_path' > '$order_dir'/.repo.cache.local "); - 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"); + 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"); } info("finished building $name"); $packages_built = 1; @@ -2460,7 +2459,7 @@ sub generate_depends() { } } # Merge local repo cache and remote repo cache - my_system("sudo cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); + my_system("cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); if ($repos_setup == 0 ) { error("repo cache creation failed..."); @@ -2642,7 +2641,7 @@ foreach my $repo (@package_repos) { } } # Merge local repo cache and remote repo cache -my_system("sudo cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); +my_system("cat '$order_dir'/.repo.cache.local '$order_dir'/.repo.cache.remote >'$order_dir'/.repo.cache"); if ($repos_setup == 0 ) { error("repo cache creation failed...");