apt-proxy-import chokes on importing a large number of
debs with a /bin/sh: "Argument list too long"
version: apt-proxy-import,v 1.10 2002/04/04 10:49:39
haggai
One solution I tried (which sems to proceed) is to use:
for file in "$directory"/*.deb; do
$DPKG_NAME -k -s
"$APT_PROXY_CACHE/dpkg-name.links" "$file" \
| line_feedback
done
instead of the current:
$DPKG_NAME -k -s "$APT_PROXY_CACHE/dpkg-name.links"
"$directory"/*.deb \
| line_feedback
So this uses one DPKG call per file, instead of the
more efficient but apparently breakable way of doign it
all on one line.
I'm not much of a shell user, so maybe someone else
might have a better solution or point to errors in this
apporach.
(There are other issues that come up using the program
(like it skips a lot of files) but I am not sure if
these are related to this change.
--Paul Fernhout (pdfernhout at kurtz-fernhout.com)