2007-02-04 17:35:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2007-03-25 17:14:33 +00:00
|
|
|
DIR=/home/dennis/ubotu/data/apt
|
2007-02-04 17:35:40 +00:00
|
|
|
|
|
|
|
for DIST in "$DIR"/*.list; do
|
2008-01-19 17:57:32 +00:00
|
|
|
test -h $DIST && continue
|
2007-02-04 17:35:40 +00:00
|
|
|
DIST=${DIST:${#DIR}}
|
|
|
|
DIST=${DIST/.list}
|
|
|
|
mkdir -p "$DIR/apt-file/$DIST"
|
|
|
|
apt-file -l -c "$DIR/apt-file/$DIST" -s "$DIR/$DIST.list" update >/dev/null 2>&1
|
|
|
|
RET=$?
|
|
|
|
if [ ! $RET ]; then
|
|
|
|
echo "apt-file failed for $DIST!"
|
|
|
|
fi
|
|
|
|
done
|