summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-12-13 12:59:02 +0100
committerRemi Collet <remi@remirepo.net>2018-12-13 12:59:02 +0100
commit734cfef479ebe9c420371fc65dc517f9d950a161 (patch)
tree094d669e2c8a40c1c20e97e0e73b499df2453f61
parent96481ef4541cb0c13daab7b6391dbd0f5d4dd7a3 (diff)
cleanup
-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;
}