Revert "Pass apex_info.pb file to delta_generator" am: 195d0a9e38 am: db5a575ca1 am: 715cadfe7b
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1567042
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I6774ab6639bc9ebd1b4dec2d273e4e9daab2b5e0
diff --git a/scripts/brillo_update_payload b/scripts/brillo_update_payload
index 1e729bd..e50618f 100755
--- a/scripts/brillo_update_payload
+++ b/scripts/brillo_update_payload
@@ -89,12 +89,14 @@
exit 1
}
-# Loads shflags. We first look at the default install location; then look for
-# crosutils (chroot); finally check our own directory.
+# Loads shflags. We first look at the default install location; then our own
+# directory; finally the parent directory.
load_shflags() {
local my_dir="$(dirname "$(readlink -f "$0")")"
local path
- for path in /usr/share/misc "${my_dir}"/lib/shflags; do
+ for path in /usr/share/misc \
+ "${my_dir}"/lib/shflags \
+ "${my_dir}"/../lib/shflags; do
if [[ -r "${path}/shflags" ]]; then
. "${path}/shflags" || die "Could not load ${path}/shflags."
return