summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/angstrom/sort.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/angstrom/sort.sh b/contrib/angstrom/sort.sh
index c00d019b4a..01b2fa3a10 100755
--- a/contrib/angstrom/sort.sh
+++ b/contrib/angstrom/sort.sh
@@ -1,13 +1,20 @@
#!/bin/bash
# Angstrom feed sorting script
-# This must be run in unstable/ directory
+# This must be run in unsorted/ directory
if [ $(basename $PWD) != "unsorted" ] ; then
echo "Not in feed dir! Exiting"
exit 1
fi
+if [ $(find . -name "*.ipk" | wc -l) -gt 0 ] ; then
+ echo "Unsorted packages found"
+else
+ echo "No unsorted packages found. Exiting"
+ exit 1
+fi
+
rm Packages* >& /dev/null
# Find ipkg files in unsorted/ and remove stale ones