From 36f728d411938d9b8849fef053f6ace427ce189f8bc7dd4d8914014a49371e09 Mon Sep 17 00:00:00 2001 From: Elisei Roca Date: Mon, 16 Aug 2021 12:59:50 +0000 Subject: [PATCH] - add 0001-Fix-one-more-typo-179.patch OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=13 --- 0001-Fix-one-more-typo-179.patch | 39 ++++++++++++++++++++++++++++++++ MirrorCache.changes | 6 ++++- _service | 3 +-- 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 0001-Fix-one-more-typo-179.patch diff --git a/0001-Fix-one-more-typo-179.patch b/0001-Fix-one-more-typo-179.patch new file mode 100644 index 0000000..0b7d7e8 --- /dev/null +++ b/0001-Fix-one-more-typo-179.patch @@ -0,0 +1,39 @@ +From 6eab1b0993b01a3acdb4532ca22543eee8b48c00 Mon Sep 17 00:00:00 2001 +From: Elisei Roca +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 + diff --git a/MirrorCache.changes b/MirrorCache.changes index de11b8c..6f3f133 100644 --- a/MirrorCache.changes +++ b/MirrorCache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 16 12:52:04 UTC 2021 - Elisei Roca + +- 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 - \ No newline at end of file diff --git a/_service b/_service index a7b7b56..e8a80e3 100644 --- a/_service +++ b/_service @@ -5,8 +5,7 @@ dist/rpm/MirrorCache-tmpfilesd.conf git://github.com/openSUSE/MirrorCache.git @PARENT_TAG@ - @PARENT_TAG@ - + @PARENT_TAG@ git enable andrii.nikitin@suse.com