1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/bin/sh
while [ "x$1" = "x-c" ] || [ "x$1" = "x-o" ] ; do
shift
shift
done
if [ "$1" != "indextargets" ]; then
echo "$0: Fake apt-get does not support $1" >&1
exit 1
fi
emit_source() {
/usr/bin/printf "%s\x1f%s\x1f%s\x1f%s\x1f%s\n" "$@"
}
emit_source Contents-deb fooarch Debian oldoldstable,lenny "$TEST_DIR/cache/site1_debian_dists_lenny_main_Contents-fooarch.gz"
emit_source Contents-deb fooarch Debian unstable,sid "$TEST_DIR/cache/site1_debian_dists_sid_main_Contents-fooarch"
# Random stuff that apt-file should ignore
emit_source Packagess fooarch "Unofficial Debian Repo" "raring proposed,devel" "$TEST_DIR/cache/some-file-that-apt-file-should-never-attempt-to-read"
|