From a4b7cea0a4b1e8dae4d7d9710f0e0765aa84a3ec Mon Sep 17 00:00:00 2001 From: "y0169.zhang" Date: Sat, 11 Feb 2017 10:53:27 +0900 Subject: [PATCH] Replace rpm packages inside buildroot mv action to ln Change-Id: Ibbde49e91779b13285e0c3552476d3d283e3dc66 --- depanneur | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/depanneur b/depanneur index f708b48..03e381c 100755 --- a/depanneur +++ b/depanneur @@ -2005,7 +2005,9 @@ sub build_package { #copy the new ones to local repo update_repo_with_rpms(\%srpmpaths, @srpms); if ($skip_srcrpm == 0){ - my_system ("sudo /bin/mv $scratch/$srcrpmdirpath/*.rpm $srpm_repo_path"); + foreach (@srpms) { + my_system ("ln -f $_ $srpm_repo_path"); + } } } elsif ($skip_srcrpm == 1){ my_system("/bin/rm -rf $srpm_repo_path/*.rpm"); @@ -2014,7 +2016,9 @@ sub build_package { #remove old rpms in local repo #copy the new ones to local repo update_repo_with_rpms (\%rpmpaths, @rpms); - my_system ("sudo /bin/mv $scratch/$rpmdirpath/*/*.rpm $rpm_repo_path"); + foreach (@rpms) { + my_system ("ln -f $_ $rpm_repo_path"); + } } my_system("$build_dir/createdirdeps $rpm_repo_path > $order_dir/.repo.cache.local "); -- 2.34.1