aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-10-20 15:44:04 +0200
committerKoen Kooi <koen@openembedded.org>2010-10-20 15:44:04 +0200
commite66dd275443ed9fcfa0a6e4f43774843e32c707e (patch)
tree6b293af4cc59c880140c3ce07e634c614638337d /contrib
parent85f8336c9b949e6fef646e27cbab3d7ed559b8b8 (diff)
downloadopenembedded-e66dd275443ed9fcfa0a6e4f43774843e32c707e.tar.gz
openembedded-e66dd275443ed9fcfa0a6e4f43774843e32c707e.tar.bz2
openembedded-e66dd275443ed9fcfa0a6e4f43774843e32c707e.zip
angstrom feed sorter: optimize duplicate finder and add toggle for updater
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/angstrom/sort.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/angstrom/sort.sh b/contrib/angstrom/sort.sh
index f00d87bad5..3364ac3292 100755
--- a/contrib/angstrom/sort.sh
+++ b/contrib/angstrom/sort.sh
@@ -34,6 +34,8 @@ cat files-sorted files-unsorted | sort | uniq -d > files-duplicate
echo "Removing duplicate packages in unsorted"
cat files-duplicate | xargs rm -f
+for i in $(find . -name "*.ipk") ; do basename $i ; done > files-sorted-new
+
# Log remaining packages to a file
find . -name "*.ipk" |grep -v dbg | grep -v -- -dev | grep -v -- -doc | grep -v -- -static | grep -v angstrom-version | grep -v locale > new-files.txt
for newfile in $(cat new-files.txt | sed s:./::g) ; do
@@ -189,14 +191,15 @@ for arch in 486sx armv4t armv4 armv5teb armv5te armv6-novfp armv6 armv7a avr32 b
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-new
+ echo "Updating list of sorted packages"
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 feeds.db* ; php update.php ; rm ../repo/feeds.db* ; cp feeds.db* ../repo )
+if [ "$1" != "--skip-repo-update" ]; then
+ ( cd ~/website/repo-updater ; rm -f feeds.db* ; php update.php ; rm ../repo/feeds.db* ; cp feeds.db* ../repo )
+fi
echo -n "Stripping source lines from Package files"
for i in `find .. -name Packages` ; do grep -v ^Source: $i|gzip -c9>$i.gz ;gunzip -c $i.gz>$i ; touch $i.sig ; done