diff options
author | Matthias Hentges <oe@hentges.net> | 2004-09-30 20:58:33 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2004-09-30 20:58:33 +0000 |
commit | a73e3157661e3ce2089e4062ab8e66deb9025310 (patch) | |
tree | f15f1a01d039e16e400d403f47bb6338c0563c74 /classes | |
parent | 6dc2c77fe991a1fd5fdfe7367209089f10daae45 (diff) |
Update split_ipk_feeds.oeclass and default feeds
BKrev: 415c7379W1O7rXge_Arep_958e0rnQ
Diffstat (limited to 'classes')
-rw-r--r-- | classes/split_ipk_feeds.oeclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/classes/split_ipk_feeds.oeclass b/classes/split_ipk_feeds.oeclass index 8a7c89cffa..2cf73a2717 100644 --- a/classes/split_ipk_feeds.oeclass +++ b/classes/split_ipk_feeds.oeclass @@ -16,22 +16,22 @@ do_split_feed () { echo "Working on pattern [$FEED_PATTERN] for feed [$FEED_NAME]" # Don't we all love sed? - cat "${DEPLOY_DIR_IPK}/Packages" |sed -n "/^Section/s/Section\:\ //p;/^Package/s/Package\:\ //p" |sed '$!N;s/\n/ /;s/\(.*\)\ \(.*\)/\2 \1/'| sort | egrep -i "$FEED_PATTERN" | sed -n "s/\(.*\)\ \(.*\)/\2/p" > feed-content.tmp + cat "${DEPLOY_DIR_IPK}/Packages" |sed -n "/^Section/s/Section\:\ //p;/^Package/s/Package\:\ //p" |sed '$!N;s/\n/ /;s/\(.*\)\ \(.*\)/\2 \1/'| sort | egrep -i -- "$FEED_PATTERN" | sed -n "s/\(.*\)\ \(.*\)/\2/p" > feed-content.tmp if ! test -z "$EXCLUDE_FROM_FEED" then - cat feed-content.tmp | egrep -iv "$EXCLUDE_FROM_FEED" > feed-content.tmp2 + cat feed-content.tmp | egrep -iv -- "$EXCLUDE_FROM_FEED" > feed-content.tmp2 rm feed-content.tmp mv feed-content.tmp2 feed-content.tmp fi if ! test -d ${DEPLOY_DIR_IPK}/${FEED_NAME} then - mkdir ${DEPLOY_DIR_IPK}/${FEED_NAME} + mkdir -p ${DEPLOY_DIR_IPK}/${FEED_NAME} else test "${DEPLOY_DIR_IPK}/${FEED_NAME}" = "/" && die "EMERGENCY BAIL-OUT" rm -rf ${DEPLOY_DIR_IPK}/${FEED_NAME} - mkdir ${DEPLOY_DIR_IPK}/${FEED_NAME} + mkdir -p ${DEPLOY_DIR_IPK}/${FEED_NAME} fi for package in `cat feed-content.tmp` @@ -40,9 +40,11 @@ do_split_feed () { done touch ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages - ipkg-make-index -r ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -p ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -l ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages.filelist -m ${DEPLOY_DIR_IPK}/${FEED_NAME} + ipkg-make-index -r ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -p ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -l ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages.filelist -m ${DEPLOY_DIR_IPK}/${FEED_NAME} || die "ipkg-make-index failed!" && echo "Packages done" + echo "###" test -d ${DEPLOY_DIR_IPK}/${FEED_NAME}/morgue && rm -rf ${DEPLOY_DIR_IPK}/${FEED_NAME}/morgue + echo "###" } addtask split_feed before do_build |