summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/git.sh12
-rw-r--r--include/inject.sh10
2 files changed, 1 insertions, 21 deletions
diff --git a/include/git.sh b/include/git.sh
index 535c7d6e..0a05b5ab 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -108,23 +108,13 @@ tmpclone()
(
[ $# -gt 5 ] || git clone "$repodir" "$3" || err "!clone $repodir $3"
git -C "$3" reset --hard "$4" || err "!reset $1 $2 $3 $4 $5"
- git_am_patches "$3" "$5"
+ fx_ "eval x_ git -C \"$3\" am" "$5" -type f
) || repofail="y"
[ "$repofail" = "y" ] && [ $# -lt 6 ] && tmpclone "$@" retry
[ "$repofail" = "y" ] && err "!clone $1 $2 $3 $4 $5"; :
}
-git_am_patches()
-{
- for p in "$2/"*; do
- [ -L "$p" ] && continue
- [ -e "$p" ] || continue
- [ -d "$p" ] && git_am_patches "$1" "$p" && continue
- [ ! -f "$p" ] || git -C "$1" am "$p" || err "$1 $2: !am $p"
- done; :
-}
-
nuke()
{
e "config/${1%/}/nuke.list" f missing || while read -r nukefile; do
diff --git a/include/inject.sh b/include/inject.sh
index 5c5e1e1c..3cfe891c 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -263,16 +263,6 @@ extract_fsp()
-o "${_dest%/*}" -n "Fsp.fd"
}
-fail_inject()
-{
- [ -L "$tmpromdel" ] || [ ! -d "$tmpromdel" ] || \
- rm -Rf "$tmpromdel" || :
- printf "\n\n%s\n\n" "$dontflash" 1>&2
- printf "WARNING: File '%s' was NOT modified.\n\n" "$archive" 1>&2
- printf "Please MAKE SURE vendor files are inserted before flashing\n\n"
- err_ "$1"
-}
-
inject()
{
need_files="n"