Browse Source

Update package list

Mikael Magnusson 7 năm trước cách đây
mục cha
commit
37f6c41413
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      scripts/build_rootfs.sh

+ 5 - 1
scripts/build_rootfs.sh

@@ -123,8 +123,11 @@ add_packages() {
 	done
 }
 
-update_packages() {
+opkg_update() {
 	$OPKG update
+}
+
+update_packages() {
 	local upgradable="$($OPKG list-upgradable|grep -e '^.* - .* - .*'|cut -d ' ' -f 1)"
 	for pkg in $upgradable; do
 		echo Upgrading $pkg
@@ -147,6 +150,7 @@ if test -n "$metadata"; then
 fi
 add_files templates/ $dir/templates/
 add_packages bin/packages/${arch}/${subarch}
+opkg_update
 if test -n "$upgrade"; then
 	update_packages
 fi