Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/update-archlinux32-package
diff options
context:
space:
mode:
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-xupdate-archlinux32-package14
1 files changed, 12 insertions, 2 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 28190e5..6795598 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -205,7 +205,12 @@ case ${update_path} in
repo_arch=$(
git -C "${used_upstream_git_path}/${pkgname}/repos" archive HEAD -- 2>/dev/null | \
tar -t 2>/dev/null | \
- sed 's/^'"${repo}-"'//;t;d' | \
+ sed -n '
+ s/^'"${repo}-"'//
+ T
+ s@/$@@
+ p
+ ' | \
head -n1
)
if [ -z "${repo_arch}" ]; then
@@ -213,7 +218,12 @@ case ${update_path} in
repo_arch=$(
git -C "${used_upstream_git_path}/${pkgname}/repos" archive HEAD -- | \
tar -t | \
- sed 's/^'"${repo}-"'//;t;d' | \
+ sed -n '
+ s/^'"${repo}-"'//
+ T
+ s@/$@@
+ p
+ ' | \
head -n1
)
fi