ubuntu-bots/PackageInfo/update_apt_file

16 lines
360 B
Plaintext
Raw Normal View History

2007-02-04 17:35:40 +00:00
#!/bin/bash
DIR=/home/stdin/bot/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