Menu

#10 apt-proxy-import chokes on importing a large number of debs

open
nobody
None
5
2004-11-11
2004-11-11
Anonymous
No

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)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.