From f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 30 Dec 2009 23:25:58 +0000 Subject: Don't break the case when new and old src.rpm have same name --- lib/Iurt/Urpmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 042ec8f..b52204b 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -679,7 +679,7 @@ sub recreate_srpm { # we can not ask rpm the generated srpm name # we can not rely on build time (one of the src.rpm may have been built on a machine with wrong time) # let's say that if we have several one, we want the non original one - my $file; + my $file = $oldsrpm; foreach my $f (glob "$chroot_tmp/home/$luser/rpm/SRPMS/$name-*.src.rpm") { $file = $f if $f ne $oldsrpm; } -- cgit v1.2.1