factory-source checks if submissions contain sources already accepted in Factory. maintbot makes sure maintenance submissions are authored by the Factory package maintainer. Both are based on a new generic ReviewBot.py class that can serve as common framework for review bots.
12 lines
361 B
Bash
Executable File
12 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
: ${interval:=1800}
|
|
while date; do
|
|
echo "maintbot ..."
|
|
sudo -u "maintbot" ./check_maintenance_incidents.py "$@" review
|
|
echo "factory-source ..."
|
|
sudo -u "factory-source" ./check_source_in_factory.py "$@" review
|
|
read -t "$interval" -p "done. sleeping. press enter to check immediately"
|
|
[ "$?" -eq 0 ] || echo
|
|
[ "$REPLY" != 'q' ] || break
|
|
done
|