summaryrefslogtreecommitdiffstats
path: root/commitpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'commitpkg.in')
-rw-r--r--commitpkg.in33
1 files changed, 12 insertions, 21 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 1095006..237e5db 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -163,7 +163,7 @@ for _arch in ${arch[@]}; do
done
if [[ ${#commit_arches[*]} -gt 0 ]]; then
- archrelease "${archreleaseopts[@]}" "${commit_arches[@]/#/$repo-}" || die
+ archrelease || die
fi
if [[ ${#uploads[*]} -gt 0 ]]; then
@@ -178,25 +178,16 @@ if [[ ${#uploads[*]} -gt 0 ]]; then
unset new_uploads
msg 'Uploading all package and signature files'
rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || die
-fi
-if [[ "${arch[*]}" == 'any' ]]; then
- if [[ -d ../repos/$repo-i686 && -d ../repos/$repo-x86_64 ]]; then
- pushd ../repos/ >/dev/null
- stat_busy "Removing $repo-i686 and $repo-x86_64"
- svn rm -q $repo-i686
- svn rm -q $repo-x86_64
- svn commit -q -m "Removed $repo-i686 and $repo-x86_64 for $pkgname"
- stat_done
- popd >/dev/null
- fi
-else
- if [[ -d ../repos/$repo-any ]]; then
- pushd ../repos/ >/dev/null
- stat_busy "Removing $repo-any"
- svn rm -q $repo-any
- svn commit -q -m "Removed $repo-any for $pkgname"
- stat_done
- popd >/dev/null
- fi
+ for _upload in "${uploads[@]}"; do
+ local pkgfile=${upload##*/}
+
+ # TODO: logic to determine which package to add to which arches
+ if [[ $pkgfile = *.pkg.tar?(.?z) ]]; then
+ for _arch in "${commit_arches[@]}"; do
+ ssh "$server" ln -sr "staging/$repo/$pkgfile" "staging/$repo/$arch/$pkgfile"
+ done
+ fi
+ done
fi
+