summaryrefslogtreecommitdiffstats
path: root/mkmodular
diff options
context:
space:
mode:
Diffstat (limited to 'mkmodular')
-rwxr-xr-xmkmodular9
1 files changed, 7 insertions, 2 deletions
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;
}