summaryrefslogtreecommitdiff
path: root/contrib/angstrom
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-21 14:00:45 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-21 14:00:45 +0200
commit0797aec5b0bd1907d553140248d609e7e5e84881 (patch)
tree8f4b1c4efe8ac3bcfbd721ad7dfa3a1d2afe3797 /contrib/angstrom
parent5e126716e0662ef9aaaa2132d9e98791254bce5e (diff)
angstrom feed sorter: atomically replace list of know packages
This change also makes it preserve packages that have been deleted, so we can now safely delete morgue directories
Diffstat (limited to 'contrib/angstrom')
-rwxr-xr-xcontrib/angstrom/sort.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/angstrom/sort.sh b/contrib/angstrom/sort.sh
index 0f1d220cf0..27fe713562 100755
--- a/contrib/angstrom/sort.sh
+++ b/contrib/angstrom/sort.sh
@@ -171,7 +171,10 @@ done
if [ "$1" != "--skip-sorted-list" ]; then
echo "Updating list of sorted packages (takes long)"
- for i in $(find ../ -name "*.ipk"| grep -v unsorted) ; do basename $i ; done > files-sorted
+ for i in $(find ../ -name "*.ipk"| grep -v unsorted) ; do basename $i ; done > files-sorted-new
+ cat files-sorted files-sorted-new | sort | uniq > files-sorted-tmp
+ mv files-sorted-tmp files-sorted
+ rm files-sorted-*
fi
( cd ~/website/repo-updater ; rm -f feed.db* ; php update.php ; rm ../repo/feeds.db* ; cp feeds.db* ../repo )