scripts/get: remove unneeded code

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-11-19 13:35:01 +01:00
parent 8c6620af2d
commit add47814c3

View File

@ -1,5 +1,5 @@
#!/bin/sh
set -x
. config/options $1
if [ -z $1 ]; then
@ -12,13 +12,6 @@ fi
mkdir -p $STAMPS_NOARCH/$1
STAMP=$STAMPS_NOARCH/$1/get
if [ -f $PACKAGE_URL ]; then
if [ -f $STAMP ]; then
[ ! $STAMP -ot $PACKAGE_URL ] && exit 0
fi
DL="yes"
fi
# if [ -n "$PKG_URL" ]; then
# if [ -f $STAMP ]; then
# [ ! $STAMP -ot $PKG_DIR/meta ] && exit 0
@ -45,9 +38,6 @@ if [ "$DL" = yes ]; then
mkdir -p $SOURCES/$1
[ -f $PACKAGE_URL ] && \
URLS=`sed s%GEEXBOX_SRCS%$GEEXBOX_SRCS% $PACKAGE_URL`
[ -n "$PKG_URL" ] && \
URLS="$URLS `echo $PKG_URL | sed s%GEEXBOX_SRCS%$GEEXBOX_SRCS%`"
@ -63,9 +53,6 @@ if [ "$DL" = yes ]; then
touch $STAMPS_NOARCH/$1/`basename $i`.ok
done
[ -f $PACKAGE_URL ] && \
cp -p $PACKAGE_URL $STAMP
[ -n "$PKG_URL" ] && \
echo $PKG_URL > $STAMP
# cp -p $PKG_DIR/meta $STAMP