diff options
author | Remi Collet <remi@remirepo.net> | 2018-12-13 12:59:02 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-12-13 12:59:02 +0100 |
commit | 734cfef479ebe9c420371fc65dc517f9d950a161 (patch) | |
tree | 094d669e2c8a40c1c20e97e0e73b499df2453f61 | |
parent | 96481ef4541cb0c13daab7b6391dbd0f5d4dd7a3 (diff) |
cleanup
-rwxr-xr-x | mkmodular | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -180,13 +180,18 @@ data: EOT; function findPackages($from, $dest, $pat) { + $fil = '.'; $rpms = []; foreach (glob("$from/$pat") as $file) { $info = rpminfo($file); $name = basename($file); if (!file_exists("$dest/$name")) { if (link($file, "$dest/$name")) { - echo "."; + echo $fil; + if (count($rpms)%64==63) { + echo "\r"; + $fil = ($fil == '.' ? '-' : '.'); + } } } $rpms[] = @@ -196,7 +201,7 @@ function findPackages($from, $dest, $pat) { $info['Release'] . '.' . $info['Arch']; } - echo "\n " . count($rpms) . " rpms\n"; + echo "\r " . count($rpms) . " rpms" . str_repeat(" ", 64) . "\n"; return $rpms; } |