From 734cfef479ebe9c420371fc65dc517f9d950a161 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 13 Dec 2018 12:59:02 +0100 Subject: cleanup --- mkmodular | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mkmodular') diff --git a/mkmodular b/mkmodular index 77260c68..342350c4 100755 --- a/mkmodular +++ b/mkmodular @@ -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; } -- cgit