summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 )