mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:28:41 +09:00
fixup: Add to append extra repository components
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Ie775f7217e363012966f568bac67de95e46b8266
This commit is contained in:
@@ -6,6 +6,14 @@ deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ main
|
||||
__EOF
|
||||
fi
|
||||
|
||||
if [ ! "x@@DEFAULT_REPO_COMPONENTS@@" = "x" ]; then
|
||||
for component in @@DEFAULT_REPO_COMPONENTS@@; do
|
||||
cat>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
|
||||
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ ${component}
|
||||
__EOF
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "x@@INTERNAL@@" = "xtrue" ]; then
|
||||
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
|
||||
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ internal
|
||||
|
||||
@@ -139,6 +139,12 @@ get_package_list() {
|
||||
echo ${pkgs}
|
||||
}
|
||||
|
||||
get_repo_components() {
|
||||
local pkgs=$(get_package_list components)
|
||||
|
||||
echo ${pkgs} | tr " " "\n" | sort | uniq | tr "\n" " "
|
||||
}
|
||||
|
||||
get_flavour_packages() {
|
||||
local pkgs=$(get_package_list packages)
|
||||
|
||||
@@ -439,6 +445,7 @@ do_preinstall() {
|
||||
-e "s,@@DEFAULT_BOARD@@,${BOARD},g" \
|
||||
-e "s,@@DEFAULT_HOSTNAME@@,${FLAVOUR},g" \
|
||||
-e "s,@@DEFAULT_APT_OPTIONS@@,$(get_default_apt_options ${FLAVOUR}),g" \
|
||||
-e "s,@@DEFAULT_REPO_COMPONENTS@@,$(get_repo_components),g" \
|
||||
-e "s,@@DEFAULT_FLAVOUR_PACKAGES@@,$(get_flavour_packages),g" \
|
||||
-e "s,@@DEFAULT_BLACKLIST_PACKAGES@@,$(get_blacklist_packages),g" \
|
||||
-e "s,@@DEFAULT_KERNEL_PACKAGE@@,${DEFAULT_KERNEL_PACKAGE},g" \
|
||||
|
||||
Reference in New Issue
Block a user