summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions b/functions
index bf999f1..c8d7787 100644
--- a/functions
+++ b/functions
@@ -662,6 +662,11 @@ download_release () {
local totaldebs=0
local leftoverdebs="$*"
+
+ # Fix possible duplicate package names, which would screw up counts:
+ leftoverdebs=$(printf "$leftoverdebs"|sed 's/ /\n/g'|sort -u|xargs)
+ numdebs=$(printf "$leftoverdebs"|wc -w)
+
for c in $COMPONENTS; do
if [ "$countdebs" -ge "$numdebs" ]; then break; fi