aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt')
-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;
}