From 7b03f4283acc1992be461d22d41bb46636261c43 Mon Sep 17 00:00:00 2001 From: Michael Herrmann Date: Tue, 21 Dec 2021 19:12:38 +0100 Subject: [PATCH] Remove references to winget-private-repository --- README.md | 2 +- install.sh | 2 +- winget/tests/test_views.py | 5 +---- winget/views.py | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8fd7e89..9761f77 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ export HOST_NAME=api.winget.pro export GIT_SERVER=github.com # The path on GIT_SERVER where this repository lies: -export GIT_REPO_NAME=omaha-consulting/winget-private-repository +export GIT_REPO_NAME=omaha-consulting/api.winget.pro # The branch of this repository that should be checked out: export GIT_REPO_BRANCH=main diff --git a/install.sh b/install.sh index 1a91fc4..89ba9cb 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Installs winget-private-repository and all dependencies on a fresh Debian 11. +# Installs api.winget.pro and all dependencies on a fresh Debian 11. # To use, upload this file and .bashrc to /root, then execute this script as # root. diff --git a/winget/tests/test_views.py b/winget/tests/test_views.py index e156a95..0293162 100644 --- a/winget/tests/test_views.py +++ b/winget/tests/test_views.py @@ -18,10 +18,7 @@ class APITest(TestCase): def test_information_required_parts(self): data = self._get('information')['Data'] - self.assertEqual( - 'github.com/omaha-consulting/winget-private-repository', - data['SourceIdentifier'] - ) + self.assertEqual('api.winget.pro', data['SourceIdentifier']) self.assertEqual(['1.1.0'], data['ServerSupportedVersions']) def test_search_all_empty(self): diff --git a/winget/views.py b/winget/views.py index 127bb9d..4114f20 100644 --- a/winget/views.py +++ b/winget/views.py @@ -21,8 +21,7 @@ def index(*_): @return_jsonresponse def information(*_): return { - 'SourceIdentifier': - 'github.com/omaha-consulting/winget-private-repository', + 'SourceIdentifier': 'api.winget.pro', 'ServerSupportedVersions': ['1.1.0'] }