Revert "add --repo-cache parameter to deliver"
authorjingui.ren <jingui.ren@samsung.com>
Tue, 7 Aug 2018 03:42:23 +0000 (11:42 +0800)
committerjingui.ren <jingui.ren@samsung.com>
Tue, 7 Aug 2018 03:42:49 +0000 (11:42 +0800)
This reverts commit 65a657dc849829252637f7b5f1bede7a490973c9.

Change-Id: Ie951a6dea81adca9250886b23154164b7d87a490

depanneur

index e2eddce..fb7123a 100755 (executable)
--- 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...");