提交 4b6176d5 编写于 作者: J Joerg Jaspert

cron

modify for new world order
Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 b8d7ece5
......@@ -45,22 +45,23 @@ function make_buildd_dir () {
# move accepted NEW packages from stagedir into queue/accepted
function acceptnew () {
cd $newstage
for file in $(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs); do
sed '1,/Files:/d' "${file}" | sed '/BEGIN PGP SIGNATURE/,$d' \
| while read notused1 notused2 notused3 notused4 NAME; do
if [ -z "${NAME}" ]; then
# Sometimes there is a newline after the Files:, ignore it
continue
fi
if [ -f "${NAME}" ]; then
mv --target-directory="${accepted}" "${NAME}"
else
log_error "Error, couldn't find file ${NAME} to move to ${accepted}"
fi
done
mv --target-directory="${accepted}" "${file}" "${file%%.changes}.dak"
done
return
# cd $newstage
# for file in $(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs); do
# sed '1,/Files:/d' "${file}" | sed '/BEGIN PGP SIGNATURE/,$d' \
# | while read notused1 notused2 notused3 notused4 NAME; do
# if [ -z "${NAME}" ]; then
# # Sometimes there is a newline after the Files:, ignore it
# continue
# fi
# if [ -f "${NAME}" ]; then
# mv --target-directory="${accepted}" "${NAME}"
# else
# log_error "Error, couldn't find file ${NAME} to move to ${accepted}"
# fi
# done
# mv --target-directory="${accepted}" "${file}" "${file%%.changes}.dak"
# done
}
# Do the unchecked processing, in case we have files.
......@@ -73,7 +74,7 @@ function do_unchecked () {
UNCHECKED_WITHOUT_LOCK=${UNCHECKED_WITHOUT_LOCK:-""}
echo "$timestamp": ${changes:-"Nothing to do"} >> $report
dak process-unchecked -a ${UNCHECKED_WITHOUT_LOCK} -d "$unchecked" >> $report
dak process-upload -a ${UNCHECKED_WITHOUT_LOCK} -d "$unchecked" >> $report
}
function sync_debbugs () {
......
......@@ -11,10 +11,10 @@ date -u > $ftpdir/project/trace/ftp-master.debian.org
echo "Using dak v1" >> $ftpdir/project/trace/ftp-master.debian.org
echo "Running on host: $(hostname -f)" >> $ftpdir/project/trace/ftp-master.debian.org
dak import-users-from-passwd
dak queue-report -n > $webdir/new.html
dak queue-report -8 -d accepted,new,byhand,proposedupdates,oldproposedupdates
#dak queue-report -n > $webdir/new.html
#dak queue-report -8 -d accepted,new,byhand,proposedupdates,oldproposedupdates
dak show-deferred > ${webdir}/deferred.html
cd $queuedir/new ; dak show-new *.changes > /dev/null
#cd $queuedir/new ; dak show-new *.changes > /dev/null
$base/dak/tools/queue_rss.py -q $queuedir/new -o $webdir/rss/ -d $base/misc
$base/dak/tools/removals.pl > $webdir/rss/removals.rss
......
......@@ -59,7 +59,7 @@ cleanup() {
function do_buildd () {
if lockfile -r3 $NOTICE; then
LOCKDAILY="YES"
psql projectb -A -t -q -c "SELECT filename FROM queue_build WHERE queue = 0 AND suite = 5 AND in_queue = true AND filename ~ 'd(sc|eb)$'" > $dbdir/dists/unstable_accepted.list
psql projectb -A -t -q -c "SELECT build_queue.path || '/' || build_queue_files.filename FROM build_queue_files LEFT JOIN build_queue ON (build_queue.id = build_queue_files.build_queue_id) WHERE queue_name = 'accepted' AND filename ~ 'd(sc|eb)$';" > $dbdir/dists/unstable_accepted.list
cd $overridedir
dak make-overrides &>/dev/null
rm -f override.sid.all3 override.sid.all3.src
......@@ -79,9 +79,9 @@ function do_buildd () {
# the actual unchecked functions follow #
########################################################################
lockfile -r3 "$LOCK_NEW"
acceptnew
rm -f "$LOCK_NEW"
#lockfile -r3 "$LOCK_NEW"
# acceptnew
#rm -f "$LOCK_NEW"
# only run one cron.unchecked
lockfile -r3 $LOCKFILE || exit 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册