summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:44:18 -0500
committerAndreas Grapentin <andreas@grapentin.org>2022-01-18 17:29:35 +0100
commit6735ea6816097fb596bad2d39af4686d98115398 (patch)
treebe98d726b98a0ba7c297f2343b84e60561518f40 /src
parente97a28b8ea0f572906eaf5522a771d6ea0a09849 (diff)
complete pbot notification
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index 8ebdc54..9c301ee 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -297,10 +297,10 @@ release_packages() {
fi
# notify pbot of the excellent work we have done
- local packages=${file_list} # TODO: parse package names? - this is gonna be messy
+ local packages=$(grep -E '\.pkg\.tar\.[^\.]+$' ${file_list} | sed 's|.*/\([^/ ]*\)/[^\ ]*$|\1|' | xargs)
local login=${REPODEST_userinfo:-somebody} ; login=${login%%:*} ;
- ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" \
- "which pbot-say && pbot-say ${login} just published: ${packages}"
+ local pbot_say_cmd="which pbot-say && pbot-say ${login} just published: ${packages}"
+ ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" "${pbot_say_cmd}"
return $EXIT_SUCCESS
}