Mailinglist Archive: opensuse (2483 mails)

< Previous Next >
Re: [opensuse] Controlling zypper's Timed-out when it is updating -- REPOST (of a Repost on 25 Nov 07)
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sun, 4 Jan 2009 17:22:32 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0901041711550.27242@xxxxxxxxxxxxxxxx>
Hash: SHA1

On Sunday, 2009-01-04 at 11:52 -0300, Cristian Rodríguez wrote:

Carlos E. R. escribió:
Per Cristian's comment, you can configure the
downloading behaviour in /root/.curlrc, but this is not even mentioned
in zypper's man page.

It is documented where it should , "man curl", zypper use libzypp that
itself uses libcurl to access some remote resources like http and ftp,
at startup, libcurl parses ~/.curlrc.

So, this is neither a zypper nor libzypp feature, but a curl one :-)

A fact that you know because you are a dev, but not because you read it in the documentation. Zypper(8) doesn't mention that it uses libcurl to do the downloading, and even if we know that it does, there is no indication that it will read root's configuration file for curl, because normally a program reads configurations, and libraries are given the configuration by the caller program via function calls, I would assume.

So no, this should be documented in zypper(8), not forgetting specifying whether it will accept all the configuration options in root's config file, or a subset.

It is wrong to assume that even expert users will know all those details of a program, use their programs to their full potential, and be able to solve all problems in the manner designed by the designers. Devs know much more, its their job. And usually, devs are bad at documenting what they do.

(and I'm not aiming this at you personally, mind, this is general)

And, as has been commented that zypper now uses or will use aria2c or metalinks libs to do the downloading, I'm not sure if zypper in 11.1 still uses curl or not.

- -- Cheers,
Carlos E. R.

Version: GnuPG v2.0.9 (GNU/Linux)

< Previous Next >
Follow Ups