Add temporary patch 0001-browse-metalink.patch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=77
This commit is contained in:
2022-11-24 13:58:03 +00:00
committed by Git OBS Bridge
parent dfcd809ce2
commit d7bb82c30b
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/assets/javascripts/browse.js b/assets/javascripts/browse.js
index 4954332..79b2ac0 100644
--- a/assets/javascripts/browse.js
+++ b/assets/javascripts/browse.js
@@ -60,7 +60,7 @@ function setupBrowseTable(path) {
return '';
}
if(type === 'display'){
- data = '<a href=".' + path + '/' + data + '.mirrorlist">Details</a>';
+ data = '<a href="' + path + '/' + data + '.mirrorlist">Details</a>';
}
}
return data;

View File

@@ -29,6 +29,7 @@ License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Servers
URL: https://github.com/openSUSE/MirrorCache
Source0: %{name}-%{version}.tar.xz
Patch0: 0001-browse-metalink.patch
Source1: cache.tar.xz
Source2: %{name}-user.conf
Source3: %{name}-tmpfilesd.conf
@@ -45,6 +46,7 @@ Mirror redirector web service, which automatically scans the main server and mir
%prep
%setup -q -a1
%patch0
%build
# make {?_smp_mflags}