aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-25 22:18:49 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-25 22:19:01 +0000
commit6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6 (patch)
treeaa9ca66c454589ff65fc67e1971d58102b01881d
parentaf8c197459cad7077ecabde0c2f8897fb80b3c06 (diff)
downloadiurt-6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6.tar
iurt-6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6.tar.gz
iurt-6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6.tar.bz2
iurt-6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6.tar.xz
iurt-6c2bdcdfde1c386dcb6deb8ed7ca42276c8211a6.zip
Add workaround for attempts to upload no packages
-rw-r--r--lib/Iurt/Emi.pm3
1 files changed, 3 insertions, 0 deletions
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";