summaryrefslogtreecommitdiffstats
path: root/lib/feed.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-18 16:37:33 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-18 16:37:33 (EDT)
commit54685daf378cd4cf9f521541e218ba1ab9d66e5d (patch)
tree293cfc664e36ea5ddbf949d11b2adb475d2c0d87 /lib/feed.sh
parent7aa14bff1aecd178c6663925a3674b24af7ab4a3 (diff)
feed_download(): Add feed_idx parameter
Diffstat (limited to 'lib/feed.sh')
-rw-r--r--lib/feed.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/feed.sh b/lib/feed.sh
index 4b1d123..598614d 100644
--- a/lib/feed.sh
+++ b/lib/feed.sh
@@ -44,10 +44,11 @@ feed_download()
# TODO: Write to a filenames file.
feed_find_pkgs()
{
- local pkg_cb="${1}"
+ local feed_idx="${1}"
local dep_fields="${2}"
- local deps_file="${3}"
- local fnames_file="${4}"
+ local pkg_cb="${3}"
+ local deps_file="${4}"
+ local fnames_file="${5}"
feed_pkg_cb="${pkg_cb}"
feed_dep_fields=" $(printf '%s ' ${dep_fields})"
@@ -62,7 +63,7 @@ feed_find_pkgs()
feed_pkg=''
feed_deps=''
- parse_control '-' feed_field_cb feed_para_cb 'Package'
+ parse_control "${feed_idx}" feed_field_cb feed_para_cb 'Package'
fclose ${feed_deps_fd}