[Debtags-commits] [svn] r1103 - tagdb
Enrico Zini
enrico at costa.debian.org
Sat Aug 6 15:29:06 UTC 2005
Author: enrico
Date: Sat Aug 6 15:29:05 2005
New Revision: 1103
Added:
tagdb/sectdispatch (contents, props changed)
Modified:
tagdb/mkoverrides
Log:
Speed up mkoverrides by using sectdispatch
Modified: tagdb/mkoverrides
==============================================================================
--- tagdb/mkoverrides (original)
+++ tagdb/mkoverrides Sat Aug 6 15:29:05 2005
@@ -1,23 +1,8 @@
#!/bin/sh
+# Create override files from the tag database
+
rm -f overrides.{main,contrib,non-free}
tagcoll --remove-unfaceted --remove-tags='special::not-yet-tagged* || special::invalid-tag || *::TODO || special::completely-tagged' copy tags | \
- awk -F": " '{print $1 "\tTag\t" $2}' | \
- while IFS=' ' read PACKAGE REST
- do
- SECTION=`apt-cache show $PACKAGE | grep '^Section:' | awk -F': ' '{ print $2 }'`
- #echo "Section: $SECTION"
- #echo "Package: $PACKAGE"
- #echo "Rest: $REST"
- if echo "$SECTION" | grep -q '^contrib/'
- then
- echo "$PACKAGE $REST" >> overrides.contrib
- elif echo "$SECTION" | grep -q '^non-free/'
- then
- echo "$PACKAGE $REST" >> overrides.non-free
- else
- echo "$PACKAGE $REST" >> overrides.main
- fi
- done
-
+ awk -F": " '{print $1 "\tTag\t" $2}' | ./sectdispatch
More information about the Debtags-commits
mailing list