Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed the controllers/Repo/Mirror/Rpm.php to check /repodata/repomd.xml #126

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
changed the controllers/Repo/Mirror/Rpm.php to check /repodata/repomd…
….xml instead of the /repodata directory. Some RPM servers are configured to prohibit access to the directory itself
  • Loading branch information
hyung-hwan committed Nov 4, 2023
commit 2192b94c13c2f047c72390cc2120a5b421d5cbf3
2 changes: 1 addition & 1 deletion www/controllers/Repo/Mirror/Rpm.php
Original file line number Diff line number Diff line change
@@ -530,7 +530,7 @@ public function mirror()
*/
foreach ($this->archUrls as $arch => $archUrls) {
foreach ($archUrls as $url) {
if (!\Controllers\Common::urlFileExists($url . '/repodata', $this->sslCustomCertificate, $this->sslCustomPrivateKey)) {
if (!\Controllers\Common::urlFileExists($url . '/repodata/repomd.xml', $this->sslCustomCertificate, $this->sslCustomPrivateKey)) {
// $this->logOutput(' - ' . $url . ' (unreachable or nothing here?)' . PHP_EOL);

/**