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

Commit b42fa75

Browse files
committed
androdeb: Remove 'buildtar' and prepare checks.
- buildtar is not needed, since we have "prepare --buildtar" already - prepare can be specified without any options since all packages will be installed if prepare wasn't specified anything. So IOW, its perfectly legal to do: "androdeb prepare" Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
1 parent 10d36a8 commit b42fa75

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

androdeb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ config_full_build() {
2929
if [ $# -lt 1 ]; then usage; fi; POSITIONAL=()
3030
while [[ $# -gt 0 ]]; do key="$1";
3131
case $key in
32-
prepare) PREPARE=1; shift || true; ;;
32+
prepare) PREPARE=1; shift || true; ;;
3333
shell) ASHELL=1; shift || true; ;;
3434
remove) REMOVE=1; shift || true; ;;
3535
pull) PULL=1; shift || true; ;;
36-
buildtar) PREPARE=1; TARDIR="./"; config_full_build; shift || true; ;;
3736
--arch) ARCH=$2; shift || true; shift || true; ;;
3837
--archive) TARF=$2; shift || true; shift || true; ;;
3938
--tracers) source $spath/packages/tracers; shift || true; ;;
@@ -63,15 +62,10 @@ if [ ! -z "$PULL" ]; then
6362
fi
6463

6564
if [ -z "$PACKAGES" ]; then
66-
echo "No packages specified, so I'm going to do a --fullbuild"
65+
echo "No packages specified, so I'm going to build/install all packages (--fullbuild)"
6766
config_full_build
6867
fi
6968

70-
if [ ! -z "$PREPARE" ] && [ -z "$DOWNLOAD" ] && [ -z "$TARF" ] &&
71-
[ -z "$KERNELSRC" ] && [ -z "$KERNELHDRS" ] &&
72-
[ -z "$BUILD_IMAGE" ]; then
73-
echo "Need to specifify something to prepare, or try: ./andrdeb prepare --download"; usage; fi
74-
7569
if [[ ! -z ${TARDIR+x} ]] && [[ ! -d $TARDIR ]]; then die 7 "Tar dir specified doesn't exist"; fi
7670

7771
if [ -z "$BUILD_IMAGE" ]; then

0 commit comments

Comments
 (0)