openmamba-headserver-tools/etc/cron.hourly/20-openmamba-apt
2012-03-12 15:18:41 +01:00

18 lines
485 B
Bash
Executable File

#!/bin/sh
#
# openmamba repository script for apt
# (c) 2006-2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# generate apt database
. /etc/sysconfig/openmamba-central
for a in ${local_reps[*]} ${remote_reps[*]}; do
[ "`find $local_ftp/$a/SRPMS.base/ -cnewer $local_ftp/$a/base`" -o \
! -e $local_ftp/$a/base/release ] && {
echo "==> Generating APT database for $a repository"
genbasedir --flat $local_ftp/$a/ ${archs[*]} base >/dev/null
}
done
exit 0