diff options
author | Matthias Hentges <oe@hentges.net> | 2004-10-13 23:03:50 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2004-10-13 23:03:50 +0000 |
commit | 4f33868fc4343468fae5cdac44d23b9f57927526 (patch) | |
tree | e30e40997aac71d677ed1c61f1a9090ca3fb7fe2 /classes | |
parent | a78c0def40146002e2e676cfb5d25fbd94f93296 (diff) |
split_ipk_feeds.oeclass: Rebuild Packages before each run
BKrev: 416db456-4Y7PrIXeb8-tacCSQP3Sg
Diffstat (limited to 'classes')
-rw-r--r-- | classes/split_ipk_feeds.oeclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/split_ipk_feeds.oeclass b/classes/split_ipk_feeds.oeclass index 2cf73a2717..4f349fd325 100644 --- a/classes/split_ipk_feeds.oeclass +++ b/classes/split_ipk_feeds.oeclass @@ -11,7 +11,10 @@ die () { do_split_feed () { test -z "$FEED_PATTERN" && die "No feed pattern in FEED_PATTERN" test -z "$FEED_NAME" && die "No feed name in FEED_NAME" - ! test -e ${DEPLOY_DIR_IPK}/Packages && die "[$DEPLOY_DIR_IPK/Packages] not found" + test -z "${DEPLOY_DIR_IPK}" && die "DEPLOY_DIR_IPK is empty, how do you do that?" + + echo "Rebuilding [${DEPLOY_DIR_IPK}/Packages]" + ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} echo "Working on pattern [$FEED_PATTERN] for feed [$FEED_NAME]" @@ -21,8 +24,7 @@ do_split_feed () { if ! test -z "$EXCLUDE_FROM_FEED" then cat feed-content.tmp | egrep -iv -- "$EXCLUDE_FROM_FEED" > feed-content.tmp2 - rm feed-content.tmp - mv feed-content.tmp2 feed-content.tmp + rm feed-content.tmp ; mv feed-content.tmp2 feed-content.tmp fi if ! test -d ${DEPLOY_DIR_IPK}/${FEED_NAME} |