diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-20 15:56:50 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-20 15:56:50 (GMT) |
commit | 270058507061600c4451eab173ab485644430166 (patch) | |
tree | a5ff58a55cf69057d143f193c9a203ea3abbae59 /rhautoimport.pm | |
parent | 9ef9b12bc2ee061c9e242ca7236deeac587691b0 (diff) |
improved title and last-run reporting
Diffstat (limited to 'rhautoimport.pm')
-rw-r--r-- | rhautoimport.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rhautoimport.pm b/rhautoimport.pm index 7c0fd50..0f9f197 100644 --- a/rhautoimport.pm +++ b/rhautoimport.pm @@ -45,6 +45,18 @@ use constant { CBA_API_KEY => '/etc/cba-api.key' }; +sub report_title_and_last +{ + my ($title, $last_run) = @_; + + $title = "" unless $title; + $last_run = 0 unless $last_run; + + if (open my $handle, '>&=3') { + print $handle $title . "\n"; + print $handle $last_run . "\n"; + } +} sub get_dropboxes { |