vendor: github.com -> gitownia.eu

This commit is contained in:
Bartłomiej Rudecki 2024-09-05 21:16:52 +02:00
parent 79d9d08510
commit 5d311b2821
Signed by: przekichane
GPG key ID: 751F23C6F014EF76
2 changed files with 6 additions and 6 deletions

View file

@ -349,7 +349,7 @@ function tequilaremote()
local PROJECT=$(echo $REMOTE | sed -e "s#/#_#g")
git remote add tequila https://github.com/tequilaOS/$PROJECT
git remote add tequila https://gitownia.eu/tequilaOS/$PROJECT
echo "Remote 'tequila' created"
}
@ -712,7 +712,7 @@ function tequilarebase() {
return
fi
cd $dir
repo=$(cat .git/config | grep git://github.com | awk '{ print $NF }' | sed s#git://github.com/##g)
repo=$(cat .git/config | grep https://gitownia.eu | awk '{ print $NF }' | sed s#https://gitownia.eu/##g)
echo "Starting branch..."
repo start tmprebase .
echo "Bringing it up to date..."

View file

@ -46,12 +46,12 @@ except:
device = product
if not depsonly:
print("Device %s not found. Attempting to retrieve device repository from tequilaOS Github (http://github.com/tequilaOS)." % device)
print("Device %s not found. Attempting to retrieve device repository from tequilaOS Forgejo (http://gitownia.eu/tequilaOS)." % device)
repositories = []
try:
authtuple = netrc.netrc().authenticators("api.github.com")
authtuple = netrc.netrc().authenticators("gitownia.eu")
if authtuple:
auth_string = ('%s:%s' % (authtuple[0], authtuple[2])).encode()
@ -66,7 +66,7 @@ def add_auth(githubreq):
githubreq.add_header("Authorization","Basic %s" % githubauth)
if not depsonly:
githubreq = urllib.request.Request("https://raw.githubusercontent.com/tequilaOS/mirror/main/default.xml")
githubreq = urllib.request.Request("https://gitownia.eu/tequilaOS/platform_manifest_mirror/raw/branch/staging/volcan/default.xml")
try:
result = ElementTree.fromstring(urllib.request.urlopen(githubreq).read().decode())
except urllib.error.URLError:
@ -267,7 +267,7 @@ def get_default_or_fallback_revision(repo_name):
print("Default revision: %s" % default_revision)
print("Checking branch info")
githubreq = urllib.request.Request("https://api.github.com/repos/tequilaOS/" + repo_name + "/branches")
githubreq = urllib.request.Request("https://gitownia.eu/api/v1/repos/tequilaOS/" + repo_name + "/branches")
add_auth(githubreq)
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
if has_branch(result, default_revision):