summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-08 16:08:14 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-08 16:08:14 +0000
commit70bf949e54f121c76810ae081ed3f09a0033a563 (patch)
treed9d4516b6adff3bde31c7cba1664fd0424563422 /scripts
parentfc25007177191cf7c086ebd9a54ac4c1db9318ef (diff)
deptest: Also accept stamps that are broken links.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24350 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deptest.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/deptest.sh b/scripts/deptest.sh
index b57612a33..047a0ce4d 100755
--- a/scripts/deptest.sh
+++ b/scripts/deptest.sh
@@ -75,6 +75,11 @@ clean_kernel_build_dir()
)
}
+stamp_exists() # $1=stamp
+{
+ [ -e "$1" -o -L "$1" ]
+}
+
test_package() # $1=pkgname
{
local pkg="$1"
@@ -88,13 +93,13 @@ test_package() # $1=pkgname
local STAMP_FAILED="$STAMP_DIR_FAILED/$pkg"
local STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg"
rm -f "$STAMP_FAILED"
- [ -e "$STAMP_SUCCESS" -a $force -eq 0 ] && return
+ stamp_exists "$STAMP_SUCCESS" && [ $force -eq 0 ] && return
rm -f "$STAMP_SUCCESS"
[ -n "$SELECTED" ] || {
echo "Package $pkg is not selected"
return
}
- [ -e "$STAMP_BLACKLIST" -a $force -eq 0 ] && {
+ stamp_exists "$STAMP_BLACKLIST" && [ $force -eq 0 ] && {
echo "Package $pkg is blacklisted"
return
}