From 033d0f06fe9a05294e21467f5926b217ed2a0f68 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Wed, 16 Oct 2013 17:19:55 +0800 Subject: [PATCH] fix using incorrect srpm and rpm hash to remove duplicated binary Change-Id: I0cc3119bcb045f7bc1416d4454ab27e844edbbb1 --- depanneur | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/depanneur b/depanneur index 6cf27cd..540b5bf 100755 --- a/depanneur +++ b/depanneur @@ -1421,12 +1421,12 @@ sub build_package { # Detach and terminate { lock($DETACHING); - if (my @rpms = bsd_glob "$scratch/home/abuild/rpmbuild/SRPMS/*.rpm") { - update_repo_with_rpms (\%rpmpaths, @rpms); + if (my @srpms = bsd_glob "$scratch/$srcrpmdirpath/*.rpm") { + update_repo_with_rpms(\%srpmpaths, @srpms); my_system ("cp $scratch/$srcrpmdirpath/*.rpm $srpm_repo_path"); } - if (my @srpms = bsd_glob "$scratch/home/abuild/rpmbuild/RPMS/*/*.rpm") { - update_repo_with_rpms(\%srpmpaths, @srpms); + if (my @rpms = bsd_glob "$scratch/$rpmdirpath/*/*.rpm") { + update_repo_with_rpms (\%rpmpaths, @rpms); my_system ("cp $scratch/$rpmdirpath/*/*.rpm $rpm_repo_path"); } -- 2.34.1