File: apt-get

package info (click to toggle)
apt-file 3.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 636 kB
  • sloc: perl: 907; sh: 93; makefile: 40
file content (20 lines) | stat: -rwxr-xr-x 701 bytes parent folder | download | duplicates (2)
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"