From 4a3e61c55102a0be3472eeab93a25470db5afa2f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 8 Dec 2018 15:27:57 +0100 Subject: [PATCH] mirrors.php: simple php script to return mirrors list --- mirrors.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 mirrors.php diff --git a/mirrors.php b/mirrors.php new file mode 100755 index 0000000..56f7c68 --- /dev/null +++ b/mirrors.php @@ -0,0 +1,19 @@ +"; + echo "Usage example: mirrors.php?repo=devel&arch=x86_64"; + exit; +} + +foreach ($basedirs as $basedir) { + echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n"; +} +?> \ No newline at end of file