3 # Copyright (C) 2009 Joerg Jaspert <joerg@debian.org>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation; version 2.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 # make sure to only use defined variables
22 # ERR traps should be inherited from functions too. (And command
23 # substitutions and subshells and whatnot, but for us the functions is
24 # the important part here)
27 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
32 LOCKFILE="$lockdir/unchecked.lock"
33 LOCK_NEW="$lockdir/processnew.lock"
34 NOTICE="$lockdir/daily.lock"
35 LOCK_BUILDD="$lockdir/buildd.lock"
36 # The state file telling us we have something new to do
37 DINSTALLPACKAGES="${lockdir}/dinstall.packages"
42 if [ -e $NOTICE ]; then
46 ########################################################################
48 ########################################################################
49 # common functions are "outsourced"
50 . "${configdir}/common"
52 STAMP=$(date "+%Y%m%d%H%M")
56 if [ ! -z "$LOCKDAILY" ]; then
61 function do_buildd () {
62 if lockfile -r3 $NOTICE; then
65 dak make-overrides &>/dev/null
66 rm -f override.sid.all3 override.sid.all3.src
67 for i in main contrib non-free main.debian-installer; do
68 cat override.lenny-backports.$i >> override.sid.all3
69 if [ "$i" != "main.debian-installer" ]; then
70 cat override.lenny-backports.$i.src >> override.sid.all3.src
78 function do_dists () {
81 dak generate-packages-sources
84 ########################################################################
85 # the actual unchecked functions follow #
86 ########################################################################
88 # And use one locale, no matter what the caller has set
92 # only run one cron.unchecked
93 lockfile -r3 $LOCKFILE || exit 0
99 if [ ! -z "$changes" ]; then
100 touch ${DINSTALLPACKAGES}
104 # echo "Starting g-p-s: $(date +%H:%M:%S)"
106 # echo "Done with g-p-s: $(date +%H:%M:%S)"