summaryrefslogtreecommitdiff
path: root/include/scan.awk
diff options
context:
space:
mode:
Diffstat (limited to 'include/scan.awk')
-rw-r--r--include/scan.awk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/scan.awk b/include/scan.awk
index 39b2977..0f02782 100644
--- a/include/scan.awk
+++ b/include/scan.awk
@@ -4,8 +4,10 @@ $1 !~ /^feeds/ { PKGS[$NF]=$0 }
END {
# Filter-out OpenWrt packages which have a feeds equivalent
for (pkg in PKGS)
- if (pkg in FEEDS)
+ if (pkg in FEEDS) {
+ print PKGS[pkg] > of
delete PKGS[pkg]
+ }
n = asort(PKGS)
for (i=1; i <= n; i++) {
print PKGS[i]