diff options
-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; } |