18 lines
485 B
Bash
Executable File
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
|