diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-01 11:26:31 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-01 11:26:31 +0100 |
commit | 3669669b73346db9e309a6e553087c6b0e879320 (patch) | |
tree | 4dde393c5eb51b6828e4cda1c64c2e62154aadb2 /contrib/angstrom | |
parent | 7b4484d03951c22b7d50889c05a324667392d7b3 (diff) |
angstrom feed sorter: don't run script if there are no packages to sort
Diffstat (limited to 'contrib/angstrom')
-rwxr-xr-x | contrib/angstrom/sort.sh | 9 |
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 |