Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit e2da8cf

Browse files
author
Alistair Strachan
committed
HACK: Install python-scapy manually.
Gets us over the finish line to use androdeb to test the net tests from https://android.googlesource.com/kernel/tests Needs some work if were ever acceptable; for example, it should only run the python-scapy workaround if it's in PACKAGES, and we need a similar workaround for debootstrap.
1 parent dae6bed commit e2da8cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

buildstrap

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ else
4646
FILE=`cat $OUT_TMP/var/lib/apt/lists/*Packages | grep -e "^Filename:.*/${PACKAGE}_" | cut -d' ' -f2`
4747
echo "Fetching ${MIRROR}${FILE}..."; echo ""
4848
curl -L ${MIRROR}${FILE} --output $TDIR/`basename $FILE`
49-
$root dpkg-deb -x $TDIR/`basename $FILE` $OUT_TMP; done; fi
49+
$root dpkg-deb -x $TDIR/`basename $FILE` $OUT_TMP; done
50+
51+
# FIXME: Install python-scapy manually because it comes from universe and
52+
# we need to use a version that is not in 18.04 due to a bug.
53+
FILE=pool/universe/s/scapy/python-scapy_2.4.0-1_all.deb
54+
echo "Fetching ${MIRROR}${FILE}..."; echo ""
55+
curl -L ${MIRROR}${FILE} --output $TDIR/`basename $FILE`
56+
$root dpkg-deb -x $TDIR/`basename $FILE` $OUT_TMP; fi
5057

5158
# Make bash the default shell
5259
$root ln -sf /bin/bash $OUT_TMP/bin/sh || true

0 commit comments

Comments
 (0)