From f40e316aa646ee05418e3a64c16e9faba30a33eb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 31 May 2009 23:32:15 +0200 Subject: [PATCH] add a - option in packages arch/platform files to tell blacklist package to a given target --- scripts/build | 4 ++-- scripts/install | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build b/scripts/build index bf38a7404e..727f377d22 100755 --- a/scripts/build +++ b/scripts/build @@ -10,11 +10,11 @@ if [ -z "$1" ]; then fi if [ -f $PKG_DIR/arch ]; then - grep -q "$TARGET_ARCH" "$PKG_DIR/arch" || exit 0 + grep -q "\-$TARGET_ARCH" "$PKG_DIR/arch" && exit 0 fi if [ -f $PKG_DIR/platform ]; then - grep -q "$TARGET_PLATFORM" "$PKG_DIR/platform" || exit 0 + grep -q "\-$TARGET_PLATFORM" "$PKG_DIR/platform" && exit 0 fi unset INSTALL diff --git a/scripts/install b/scripts/install index 898240c3b0..17187cf05c 100755 --- a/scripts/install +++ b/scripts/install @@ -10,11 +10,11 @@ if [ -z "$1" ]; then fi if [ -f $PKG_DIR/arch ]; then - grep -q "$TARGET_ARCH" "$PKG_DIR/arch" || exit 0 + grep -q "\-$TARGET_ARCH" "$PKG_DIR/arch" && exit 0 fi if [ -f $PKG_DIR/platform ]; then - grep -q "$TARGET_PLATFORM" "$PKG_DIR/platform" || exit 0 + grep -q "\-$TARGET_PLATFORM" "$PKG_DIR/platform" && exit 0 fi if [ -d $PKG_DIR/init.d ]; then