set +x for mk_repo; exclude OBS created .repo file
@@ -133,6 +133,9 @@ foreach my $distro (@distros) {
}
}
+ # exclude OBS created .repo file
+ $tar_args .= "--exclude $distro/OpenHPC:$release.repo"
+
# cd to $tmp_dir
$tar_args .= "-C $tmp_dir \\\n";
@@ -166,6 +169,7 @@ foreach my $distro (@distros) {
# Copy mk_repo utility
print "Adding mk_repo utility\n";
File::Copy::copy("mk_repo","$tmp_dir") || die "Unable to copy mk_repo\n";
+ chmod 0700, "/tmp_dir/mk_repo" || die "Unable to set perms for mk_repo\n";
# Assemble final tarball
$tar_args .= "$distro mk_repo";
@@ -199,6 +203,10 @@ foreach my $distro (@distros) {
$tar_args .= "--exclude $distro/updates/$n_distro \\\n";
}
}
+
+ # exclude OBS created .repo file
+ $tar_args .= "--exclude $distro/OpenHPC:$release.repo"
+
$tar_args .= "--exclude $distro/iso \\\n";
$tar_args .= "-C $tmp_dir \\\n";
$tar_args .= "$distro mk_repo";
