Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-20 18:36:03 +0200
committerErich Eckner <git@eckner.net>2023-05-20 18:36:03 +0200
commitd9a8257a0275f24f93e6f21e6001fc19fbf448bd (patch)
treee1ed51e0c529d7c0d3f545acba3bc22057e9f592 /bin/get-package-updates
parent9d08ab3ee2aec838695fc949e4335fdaafbea7ff (diff)
anti-apartheid: master -> main
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index b791dc2..9835bea 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -186,11 +186,16 @@ something_new=false
for repo in ${repo_names}; do
eval repo_path='"${repo_paths__'"${repo}"'}"'
+ if [ "${repo}" = 'archlinux32' ]; then
+ branch='master'
+ else
+ branch='main'
+ fi
# Update git repositories (upstream state and our package customizations).
if [ -d "${repo_path}/.git" ]; then
git -C "${repo_path}" pull --ff-only
else
- git -C "${repo_path}" fetch origin master:master
+ git -C "${repo_path}" fetch origin "${branch}:${branch}"
fi || \
true
# read previous git revision numbers from database.