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:
13
0001-browse-metalink.patch
Normal file
13
0001-browse-metalink.patch
Normal 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;
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user