This file is indexed.

/usr/bin/nd_fetch_bdepends is in neurodebian-dev 0.37.6.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

dist=$1
tdir=$2

shift
shift

# provide deb-src by uncommenting
echo "D: adjusting the sources"
sed -i -e 's,^#deb-src,deb-src,g' /etc/apt/sources.list
echo "D: now have"
cat /etc/apt/sources.list

mkdir -p $tdir
cd $tdir
apt-get update
apt-get install -y devscripts dctrl-tools
rm -f build-rdeps.output
echo "D: querying rdepds for $@"

# D: interactive shell for debugging
# /bin/bash < /dev/tty > /dev/tty 2> /dev/tty

# TODO: use apt-rdepends  for ultimate list
for pkg in "$@"; do
	build-rdeps --distribution $dist $pkg >> build-rdeps.output
done

echo "D: got rdepds:"
cat build-rdeps.output

# Fetch all the sources
grep -v -e '^[-A-Z]' -e '^ *$' build-rdeps.output \
	| sort | uniq \
	| tee build-rdeps.list \
	| while read pkg; do
	apt-get source --download-only $pkg
done