# exit on errors
set -e
+set -o pipefail
# make sure to only use defined variables
set -u
# ERR traps should be inherited from functions too. (And command
pg_timestamp preunchecked >/dev/null
-do_newstage
+
+# Process policy queues
+punew stable-new
+opunew oldstable-new
+
+# Finally deal with unchecked
do_unchecked
if [ ! -z "$changes" ]; then