This does not work in this place because we are streaming the filelist
into the script and the check is being performed in Pakfire.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return 0
}
-is_file_on_filelist() {
- local file="${1}"
- local filelist="${2}"
-
- local line
- while read -r line; do
- if [ "${file}" = "${line}" ]; then
- return 0
- fi
- done < "${filelist}"
-
- # Nothing found
- return 1
-}
-
find_elf_interpreter() {
local file="${1}"
local filelist="${2}"
grep "program interpreter" | tr -d "]" | awk '{ print $NF }')"
# Only add interpreter if it isn't part of this package
- if [ -n "${interpreter}" ] && ! is_file_on_filelist "${interpreter}" "${filelist}"; then
+ if [ -n "${interpreter}" ]; then
echo "${interpreter}"
fi
link="${link#${buildroot}}"
# If the destination is not in this package, we create a dependency for it
- if ! is_file_on_filelist "${link}" "${filelist}"; then
- echo "${link}"
- fi
+ echo "${link}"
# We do not process symlinks any further
continue