From 6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 25 Feb 2016 22:18:49 +0000 Subject: Add workaround for attempts to upload no packages --- lib/Iurt/Emi.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Iurt/Emi.pm') diff --git a/lib/Iurt/Emi.pm b/lib/Iurt/Emi.pm index 5d6be34..1df4f67 100644 --- a/lib/Iurt/Emi.pm +++ b/lib/Iurt/Emi.pm @@ -123,6 +123,9 @@ sub upload_prefix_in_media { plog('OK', " uploading $rpm in $done/$path"); } + # This should not happen :( + return unless @packages; + $user ||= $config->{upload_user}; # FIXME we want to skip all post, we should not hardcode them here my $skip = $o_finish ? "" : "--skip-post genhdlist2 --skip-post mirror --skip-post clean_rpmsrate"; -- cgit v1.2.1