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

Commit

Permalink
Revert "androdeb: fix push headers error"
Browse files Browse the repository at this point in the history
This reverts commit a5d6f98.
  • Loading branch information
Joel Fernandes committed May 2, 2019
1 parent 14aa007 commit be8f169
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions androdeb
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ function push_unpack_headers() {
c_info "Storing kernel headers into androdeb /kernel-headers/"
remote_shell rm -rf /data/androdeb/debian/kernel-headers/
remote_shell mkdir /data/androdeb/debian/kernel-headers/
run_quiet remote_copy $TDIR_ABS/kh.tgz /data/androdeb/kh.tar.gz
remote_shell busybox tar -xzvf /data/androdeb/kh.tar.gz -C /data/androdeb/debian/kernel-headers/ > /dev/null
remote_shell rm /data/androdeb/kh.tar.gz
tmpdir=$(mktemp -d)
tar -xvf $TDIR_ABS/kh.tgz -C $tmpdir > /dev/null
run_quiet remote_copy $tmpdir/* /data/androdeb/debian/kernel-headers/ > /dev/null
rm -rf $tmpdir
}

function push_unpack_tarred_headers() {
Expand All @@ -179,7 +180,7 @@ function push_unpack_tarred_headers() {
run_quiet remote_copy $1 /data/androdeb/

c_info "Storing kernel headers into androdeb root directory"
remote_shell busybox tar -xvf /data/androdeb/$(basename $1) -C /data/androdeb/debian/ > /dev/null
remote_shell tar -xvf /data/androdeb/$(basename $1) -C /data/androdeb/debian/ > /dev/null

remote_shell rm /data/androdeb/$(basename $1)
}
Expand Down

0 comments on commit be8f169

Please sign in to comment.