1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 22:52:28 +02:00

deptest: Also accept stamps that are broken links.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24350 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2010-12-08 16:08:14 +00:00
parent fc25007177
commit 70bf949e54

View File

@ -75,6 +75,11 @@ clean_kernel_build_dir()
) )
} }
stamp_exists() # $1=stamp
{
[ -e "$1" -o -L "$1" ]
}
test_package() # $1=pkgname test_package() # $1=pkgname
{ {
local pkg="$1" local pkg="$1"
@ -88,13 +93,13 @@ test_package() # $1=pkgname
local STAMP_FAILED="$STAMP_DIR_FAILED/$pkg" local STAMP_FAILED="$STAMP_DIR_FAILED/$pkg"
local STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg" local STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg"
rm -f "$STAMP_FAILED" rm -f "$STAMP_FAILED"
[ -e "$STAMP_SUCCESS" -a $force -eq 0 ] && return stamp_exists "$STAMP_SUCCESS" && [ $force -eq 0 ] && return
rm -f "$STAMP_SUCCESS" rm -f "$STAMP_SUCCESS"
[ -n "$SELECTED" ] || { [ -n "$SELECTED" ] || {
echo "Package $pkg is not selected" echo "Package $pkg is not selected"
return return
} }
[ -e "$STAMP_BLACKLIST" -a $force -eq 0 ] && { stamp_exists "$STAMP_BLACKLIST" && [ $force -eq 0 ] && {
echo "Package $pkg is blacklisted" echo "Package $pkg is blacklisted"
return return
} }