contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead

This commit is contained in:
Jo-Philipp Wich 2009-08-22 17:56:48 +00:00
parent 2903acf1f2
commit 1c8db37e8b
2 changed files with 6 additions and 3 deletions

View file

@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=remote-update
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

View file

@ -8,8 +8,11 @@ local NL='
find_architecture()
{
opkg list_installed 'base-files-*' | \
sed -ne 's/base-files-\([^ ]\+\).*/\1/p'
local ifs="$IFS"; IFS="-"
set -- $(opkg list_installed kernel)
IFS="$ifs"
echo "$3"
}
find_image()