[Bps-public-commit] cpan2rt branch, master, updated. cbe6f875fa0ae04d8634f100b172ba7c438f5d93
Dianne Skoll
dianne at bestpractical.com
Fri Mar 12 16:03:24 EST 2021
The branch, master has been updated
via cbe6f875fa0ae04d8634f100b172ba7c438f5d93 (commit)
from 25b3076bc37cbba6fc26643d2dd7b28538ae23ef (commit)
Summary of changes:
bin/sync-queues-to-pobox | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit cbe6f875fa0ae04d8634f100b172ba7c438f5d93
Author: Dianne Skoll <dianne at bestpractical.com>
Date: Fri Mar 12 21:03:07 2021 +0000
Oops... we also have to handle "comment-QUEUE" as well as "bug-QUEUE"
diff --git a/bin/sync-queues-to-pobox b/bin/sync-queues-to-pobox
index 29e4312..b8fa0cb 100755
--- a/bin/sync-queues-to-pobox
+++ b/bin/sync-queues-to-pobox
@@ -26,8 +26,8 @@ fi
# Maximum pobox alias length is 90 characters. We prefix with "bug-" which
-# leaves 86 characters for the queue name.
-psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues WHERE LENGTH(Name) < 86" --tuples-only --no-align rt5 | \
+# leaves 86 characters and "comment-" which leaves 82.
+psql -U admin -h 127.0.0.1 -c "SELECT Name FROM Queues WHERE LENGTH(Name) < 82" --tuples-only --no-align rt5 | \
egrep -v '[ :+]' | grep -v '^___Approvals$' | grep -v '\.$' | \
- sed -e 's/\(.*\)/bug-\1,bug-\1 at rt-cpan-org.hostedrt.com/' | \
+ sed -e 's/\(.*\)/bug-\1,bug-\1 at rt-cpan-org.hostedrt.com\ncomment-\1,comment-\1 at rt-cpan-org.hostedrt.com/' | \
/usr/local/go/bin/go run cmd/sync/sync.go --domain rt.cpan.org --timeout 60m0s --delay 0
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list