diff options
author | Erich Eckner <git@eckner.net> | 2018-01-10 14:50:54 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-10 14:50:54 +0100 |
commit | 47c6c73d79420cc070dd4c273650ac9bb8fa95da (patch) | |
tree | 8b38ebea53c6b620bf8a4a04f4bc69c24143ed3b | |
parent | 28cdaf4f5d097534c9235cab225c5184acee0869 (diff) | |
download | asp32-47c6c73d79420cc070dd4c273650ac9bb8fa95da.tar.xz |
-rw-r--r-- | asp32.in | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,7 +1,7 @@ #!/bin/bash ASP_VERSION=@ASP_VERSION@ -ARCH_GIT_REPOS=(packages community) +ARCH_GIT_REPOS=(packages64 community64 packages32) OPT_ARCH=$(uname -m) OPT_FORCE=0 @@ -143,7 +143,11 @@ initialize() { git init -q || return 1 for remote in "${ARCH_GIT_REPOS[@]}"; do - git remote add "$remote" "https://git.archlinux.org/svntogit/$remote.git" + if [[ "${remote}" = *64 ]]; then + git remote add "$remote" "https://git.archlinux.org/svntogit/${remote%64}.git" + elif [[ "${remote}" = *32 ]]; then + git remote add "$remote" "https://github.com/archlinux32/${remote%32}.git" + fi done touch .asp @@ -304,7 +308,11 @@ action__set-git-protocol() { esac for remote in "${ARCH_GIT_REPOS[@]}"; do - git remote set-url "$remote" "$1://git.archlinux.org/svntogit/$remote.git" + if [[ "${remote}" = *64 ]]; then + git remote set-url "$remote" "$1://git.archlinux.org/svntogit/${remote%64}.git" + elif [[ "${remote}" = *32 ]]; then + git remote set-url "$remote" "$1://github.com/archlinux32/${remote%32}.git" + fi done } |