summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/split_ipk_feeds.oeclass8
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}