- add 0001-Fix-one-more-typo-179.patch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=13
This commit is contained in:
Elisei Roca 2021-08-16 12:59:50 +00:00 committed by Git OBS Bridge
parent edc5e22392
commit 36f728d411
3 changed files with 45 additions and 3 deletions

View File

@ -0,0 +1,39 @@
From 6eab1b0993b01a3acdb4532ca22543eee8b48c00 Mon Sep 17 00:00:00 2001
From: Elisei Roca <eroca@suse.de>
Date: Thu, 5 Aug 2021 12:19:59 +0200
Subject: [PATCH 1/2] Fix one more typo (#179)
---
lib/MirrorCache/WebAPI/Plugin/RootRemote.pm | 2 +-
lib/MirrorCache/WebAPI/Plugin/RootRsync.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm b/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
index 2bc23b1..d79bf99 100644
--- a/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
+++ b/lib/MirrorCache/WebAPI/Plugin/RootRemote.pm
@@ -98,7 +98,7 @@ sub location {
$c = $dm->c if $dm;
if ($dm && $ENV{MIRRORCACHE_REDIRECT_VPN} && $dm->vpn) {
return $self->rooturlredirectvpn . $filepath unless $c && $c->req->is_secure;
- return $self->rooturlredirectbpns . $filepath;
+ return $self->rooturlredirectvpns . $filepath;
}
return $self->rooturlredirect . $filepath unless $c && $c->req->is_secure;
return $self->rooturlredirects . $filepath;
diff --git a/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm b/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
index 88696de..5c8eae8 100644
--- a/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
+++ b/lib/MirrorCache/WebAPI/Plugin/RootRsync.pm
@@ -116,7 +116,7 @@ sub location {
$c = $dm->c if $dm;
if ($dm && $ENV{MIRRORCACHE_REDIRECT_VPN} && $dm->vpn) {
return $self->rooturlredirectvpn . $filepath unless $c && $c->req->is_secure;
- return $self->rooturlredirectbpns . $filepath;
+ return $self->rooturlredirectvpns . $filepath;
}
return $self->rooturlredirect . $filepath unless $c && $c->req->is_secure;
return $self->rooturlsredirect . $filepath;
--
2.31.1

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 16 12:52:04 UTC 2021 - Elisei Roca <eroca@suse.com>
- add 0001-Fix-one-more-typo-179.patch
-------------------------------------------------------------------
Thu Aug 12 11:42:34 UTC 2021 - andrii.nikitin@suse.com
@ -123,4 +128,3 @@ Thu Aug 12 11:42:34 UTC 2021 - andrii.nikitin@suse.com
- Update to version 0.1:
* Auto deploy db on start

View File

@ -5,8 +5,7 @@
<param name="extract">dist/rpm/MirrorCache-tmpfilesd.conf</param>
<param name="url">git://github.com/openSUSE/MirrorCache.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">@PARENT_TAG@</param>
<param name="revision">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">andrii.nikitin@suse.com</param>