enable autoflush
@@ -13,9 +13,11 @@ my @distros = ('CentOS_7.2');
my $base_repo_path = "/srv/obs/repos/OpenHPC:";
my $dest_dir = "/srv/www/isos";
-#my $dest_dir = "/srv/tmp/isos/isos";
my $tmp_dir = "/srv/tmp/isos/mk_isos.$$";
+# enable autoflush
+$| = 1;
+
# query expected environment variables
my $release;
my $overwrite=0;
@@ -54,7 +56,7 @@ print "--> base repo copy complete\n";
# build update repo
if ($micro) {
#TODO: support update repo merge
- print "copying updates\n";
+ print "\nCopying updates\n";
unlink "$tmp_dir/updates" || warn "Unable to remove updates link: $!";
rmtree "$tmp_dir/empty" || warn "Unable to remove empty dir: $!";
dircopy("$base_repo_path/$base_release:/Update$micro/*", "$tmp_dir/updates") ||
@@ -88,7 +90,7 @@ foreach my $distro (@distros) {
$mkisofs_args .= "-o $dest_dir/OpenHPC-$release.$distro\_$arch.iso $tmp_dir/$distro";
- print "iso for $distro:$arch -- \n";
+ print "\nCreating ISO for $distro:$arch -- \n";
system("mkisofs $mkisofs_args");
}
