mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Support new sources format within the lb environment
This commit is contained in:
parent
617b516f1f
commit
9d08d181f0
6 changed files with 34 additions and 29 deletions
|
|
@ -6,9 +6,6 @@
|
|||
# Delete sources of packages before linux kernel
|
||||
|
||||
get_source_filename() {
|
||||
if [[ "${1}" == git://* ]]; then
|
||||
shift
|
||||
fi
|
||||
local url="${1}"
|
||||
local fname="${3}"
|
||||
# Default to basename of url if not given
|
||||
|
|
@ -24,7 +21,7 @@ pkgs="$(awk '/^build:/ { print $2 }' "${SRCDIR}/manifest" | awk '/^linux-[0-9]/,
|
|||
keep_sources=""
|
||||
for pkg in ${pkgs}; do
|
||||
while read line; do
|
||||
keep_sources="${keep_sources} $(get_source_filename ${line})"
|
||||
keep_sources="${keep_sources} $(source_line_action get_source_filename ${line})"
|
||||
done < "${SRCDIR}/${pkg}/sources"
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue