Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorten Linderud <foxboron@archlinux.org>2021-12-25 15:06:35 +0100
committerLevente Polyak <anthraxx@archlinux.org>2022-01-26 21:31:37 +0100
commit63ad548818402f687ebb46ce723a4be3956ff29d (patch)
tree5bb189543077c61fb63693c4fe5be5f5fb1765d7
parent39a99e1664ea196d31ccec5bf35c473ff74efe74 (diff)
commitpkg: Implement debug package handling
This implements the logic we need to properly figure out debug packages when finding packages we are suppose to upload towards repos.archlinux.org. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
-rw-r--r--commitpkg.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 53b7e9f..928e638 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -96,6 +96,11 @@ for _arch in "${arch[@]}"; do
check_package_validity "$pkgfile"
fi
done
+
+ fullver=$(get_full_version "$pkgbase")
+ if pkgfile=$(find_cached_package "$pkgbase-debug" "$fullver" "$_arch"); then
+ check_package_validity "$pkgfile"
+ fi
done
if [[ -z $server ]]; then
@@ -140,7 +145,6 @@ for _arch in "${arch[@]}"; do
for _pkgname in "${pkgname[@]}"; do
fullver=$(get_full_version "$_pkgname")
-
if ! pkgfile=$(find_cached_package "$_pkgname" "$fullver" "${_arch}"); then
warning "Skipping %s: failed to locate package file" "$_pkgname-$fullver-$_arch"
skip_arches+=("$_arch")
@@ -148,6 +152,15 @@ for _arch in "${arch[@]}"; do
fi
uploads+=("$pkgfile")
done
+
+ fullver=$(get_full_version "$pkgbase")
+ if ! pkgfile=$(find_cached_package "$pkgbase-debug" "$fullver" "$_arch"); then
+ continue
+ fi
+ if ! is_debug_package "$pkgfile"; then
+ continue
+ fi
+ uploads+=("$pkgfile")
done
for pkgfile in "${uploads[@]}"; do