diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-02-06 19:25:30 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-02-06 19:32:23 +0000 |
commit | 864724bdc23083703d0ffd6e1688cd847e0aa64d (patch) | |
tree | e0542e7775e0045cd5f37b66e9b9a00b41fdf9a9 /lib/Iurt/Ulri.pm | |
parent | db34c27b7fb2d558d733257041e3f28bf30c85a3 (diff) | |
download | iurt-864724bdc23083703d0ffd6e1688cd847e0aa64d.tar iurt-864724bdc23083703d0ffd6e1688cd847e0aa64d.tar.gz iurt-864724bdc23083703d0ffd6e1688cd847e0aa64d.tar.bz2 iurt-864724bdc23083703d0ffd6e1688cd847e0aa64d.tar.xz iurt-864724bdc23083703d0ffd6e1688cd847e0aa64d.zip |
Better modules split
Diffstat (limited to 'lib/Iurt/Ulri.pm')
-rwxr-xr-x | lib/Iurt/Ulri.pm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Iurt/Ulri.pm b/lib/Iurt/Ulri.pm index 4140678..0f83897 100755 --- a/lib/Iurt/Ulri.pm +++ b/lib/Iurt/Ulri.pm @@ -4,6 +4,7 @@ use base qw(Exporter); use File::Path qw(make_path); use File::Temp qw(mktemp); use Iurt::Config qw(get_author_email); +use Iurt::File qw(check_file_timeout); use Iurt::Util qw(plog ssh_setup ssh sput); use strict; @@ -122,15 +123,6 @@ sub build_package { return $pid; } -sub check_file_timeout { - my ($file, $time) = @_; - - my $i = 0; - while ($i < $time && (!-f $file || -z $file)) { sleep 1; $i++ } - - $i == $time; -} - sub exclude_machine { my ($config, $host) = @_; plog('INFO', "Excluding build host $host"); |