Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-20 10:33:35 +0100
committerErich Eckner <git@eckner.net>2018-03-20 10:33:35 +0100
commitbd5173dc0c845e0e01de8aed01bd85b0e6646344 (patch)
tree22e13e878d0c04741a87f81e94eac5f9bb067975 /lib
parent90a9a1999e0d5a82dca830d43f9e73fd87392dd7 (diff)
lib/common-functions: irc_say new
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions8
-rwxr-xr-xlib/mysql-functions2
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 1abe7bc..aa32409 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -1390,3 +1390,11 @@ extract_pkgname_epoch_pkgver_pkgrel_sub_pkgrel_arch_from_package_name() {
epoch="${epoch%%:*}"
fi
}
+
+# irc_say
+# say content of stdin in irc channel
+irc_say() {
+ if [ -p "${irc_dir}/#archlinux32/in" ]; then
+ sponge "${irc_dir}/#archlinux32/in"
+ fi
+}
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 0b21bdf..801eca2 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -83,7 +83,7 @@ mysql_run_query() {
if [ ! -s "${work_dir}/build-master-sanity" ]; then
printf '\001ACTION failed to execute a mysql query - can you have a look at "%s"?.\001\n' \
"${query_file##*/}" \
- | sponge "${irc_dir}/#archlinux32/in"
+ | irc_say
fi
echo 'A mysql query failed.' > \
"${work_dir}/build-master-sanity"