diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-12-30 23:25:58 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-12-30 23:25:58 +0000 |
commit | f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260 (patch) | |
tree | 2c27864c65768977f934f87e19f473732eac6cbb /lib/Iurt/Urpmi.pm | |
parent | dc608f3ff0e841e33e04d9144c2681cd86acf658 (diff) | |
download | iurt-f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260.tar iurt-f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260.tar.gz iurt-f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260.tar.bz2 iurt-f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260.tar.xz iurt-f67bd829b0a1ece0e6a3cd14d39ed5c7e6169260.zip |
Don't break the case when new and old src.rpm have same name
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |