aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-12-30 23:25:58 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-12-30 23:25:58 +0000
commitf67bd829b0a1ece0e6a3cd14d39ed5c7e6169260 (patch)
tree2c27864c65768977f934f87e19f473732eac6cbb /lib
parentdc608f3ff0e841e33e04d9144c2681cd86acf658 (diff)
downloadiurt-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')
-rw-r--r--lib/Iurt/Urpmi.pm2
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;
}