com web/rmtools: cleanup zips after the builds: client/script/pickle.php

From: Date: Wed, 06 May 2015 11:59:37 +0000
Subject: com web/rmtools: cleanup zips after the builds: client/script/pickle.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-25993@lists.php.net to get a copy of this message
Commit: e6041b8f4ec7afb2e86057a8baa94d3223ba138f Author: Anatol Belski <ab@php.net> Wed, 6 May 2015 13:59:37 +0200 Parents: e0333365cf68c68c137b51e9e286703abc077f38 Branches: master pecl_legacy Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=e6041b8f4ec7afb2e86057a8baa94d3223ba138f Log: cleanup zips after the builds Changed paths: M client/script/pickle.php Diff: diff --git a/client/script/pickle.php b/client/script/pickle.php index 58eb533...b13c312 100644 --- a/client/script/pickle.php +++ b/client/script/pickle.php @@ -142,6 +142,12 @@ foreach ($builds as $build_name) { if (rm\upload_pickle_pkg_ftp_curl($pkgs_to_upload, array($logs_zip), $target)) { echo "Upload succeeded" . PHP_EOL; + if (file_exists($logs_zip)) { + unlink($logs_zip); + } + if (file_exists($pkg_file)) { + unlink($pkg_file); + } } else { echo "Upload failed" . PHP_EOL; } @@ -153,12 +159,6 @@ foreach ($builds as $build_name) { /* notify pickle */ - //var_dump($build_name); - //var_dump($build); - //var_dump($ext); - //var_dump($build_config); - - echo PHP_EOL; }

« previous php.webmaster (#25993) next »