forked from freifunk-franken/firmware
buildscript: allow feed without url
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de> Reviewed-by: Steffen Pankratz <kratz00@gmx.de>
This commit is contained in:
parent
ae16b107a3
commit
b5e5caa741
|
@ -89,6 +89,7 @@ get_source() {
|
|||
local URL=${FEED[1]}
|
||||
local REV=${FEED[2]}
|
||||
|
||||
if [ -n "$URL" ] && [ -n "$REV" ]; then
|
||||
checkout_git "$NAME" "$URL" "$REV"
|
||||
|
||||
# Patches for feeds could be stored in known directories like build_patches/$NAME/
|
||||
|
@ -105,6 +106,7 @@ get_source() {
|
|||
fi
|
||||
count=$(( count + 1 ))
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
cd .. # packages
|
||||
|
@ -278,8 +280,12 @@ clean() {
|
|||
FEED=("${!FEED}")
|
||||
|
||||
local NAME=${FEED[0]}
|
||||
local URL=${FEED[1]}
|
||||
local REV=${FEED[2]}
|
||||
|
||||
if [ -n "$URL" ] && [ -n "$REV" ]; then
|
||||
/bin/rm -rf src/packages/"$NAME"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue