From c56a8ad78df88608a175388827e7d09e4fe4fd50 Mon Sep 17 00:00:00 2001 From: "y0169.zhang" Date: Tue, 12 Sep 2017 15:29:36 +0800 Subject: [PATCH] Fix lack of src rpm Change-Id: Ib59f18be149d96d7600b749d6f4f7356278e256e --- depanneur | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/depanneur b/depanneur index e00be54..f45d47e 100755 --- a/depanneur +++ b/depanneur @@ -2596,12 +2596,13 @@ for my $pkg (bsd_glob "$rpm_repo_path/*.rpm") { } } for my $pkg (bsd_glob "$srpm_repo_path/*.rpm") { - my ($name, $version, $release) = get_pkg_info $pkg; + my ($name, $version, $release, $arch) = get_pkg_info $pkg; next if $name eq ''; - if (exists $srpmpaths{$name}) { - push @{$srpmpaths{$name}}, $pkg; + my $na = "$name$arch"; + if (exists $srpmpaths{$na}) { + push @{$srpmpaths{$na}}, $pkg; } else { - $srpmpaths{$name} = [$pkg]; + $srpmpaths{$na} = [$pkg]; } } -- 2.7.4