diff options
author | Koen Kooi <koen@openembedded.org> | 2010-04-21 14:00:45 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-21 14:00:45 +0200 |
commit | 0797aec5b0bd1907d553140248d609e7e5e84881 (patch) | |
tree | 8f4b1c4efe8ac3bcfbd721ad7dfa3a1d2afe3797 /contrib | |
parent | 5e126716e0662ef9aaaa2132d9e98791254bce5e (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')
-rwxr-xr-x | contrib/angstrom/sort.sh | 5 |
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 ) |