summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2014-11-12 18:31:22 +0100
committerJuergen Daubert <jue@jue.li>2014-11-12 18:31:22 +0100
commit1301d9b5a95da276370e80aedceeccef8c223d18 (patch)
tree33ac1a657739a3e1aed0ba0595218cd1d07778c8
parent32f9b9b7a19a87c0e6bc3caa60c82cc47e0e804c (diff)
downloadprt-utils-1301d9b5a95da276370e80aedceeccef8c223d18.tar.gz
prt-utils-1301d9b5a95da276370e80aedceeccef8c223d18.tar.xz
findredundantdeps: small optimization of the gawk code
-rw-r--r--findredundantdeps4
1 files changed, 2 insertions, 2 deletions
diff --git a/findredundantdeps b/findredundantdeps
index 06b4ca0..9521977 100644
--- a/findredundantdeps
+++ b/findredundantdeps
@@ -32,8 +32,8 @@ get_directdeps()
/^Dependencies:/ {
split($2,a,",")
# remove duplicates
- for (i in a) b[a[i]]=a[i]
- for (i in b) print b[i]
+ for (i in a) b[a[i]]
+ for (i in b) print i
}'
}

Generated by cgit