[pca] PCA return codes

Martin Paul martin at par.univie.ac.at
Tue Sep 30 10:39:07 CEST 2008


Fred Chagnon wrote:
> I believe what Rajiv may have been asking for was an option to NOT download
> patches if indeed they are missing. Simply say the patch is missing, and
> move on. (Obviously this may break dependencies, but if the host isn't
> connected to the internet, why waste time trying to download.)

As long as patchurl is not set to point at some local patch resource and 
user/passwd are unset as well, there will be no real attempt to do a 
download anyway. pca will report the missing patch file and move on to 
the next one.

I guess I *could* change pca's behaviour to not try to download patches 
if only --install but not --download is specified, but this will for 
sure confuse current users.

> But since several of our servers are in on a network with no direct access
> to the Internet, I also wrote a patch simluation script. This script is
> almost a carbon copy of the patch script but it runs against the
> uname/showrev/pkginfo files on the server where I keep all the patches.

Yes, that works fine. Still, if all machines can at least access some 
local machine (which can access the Internet) via HTTP, you might think 
about setting a local caching proxy (pca-proxy.cgi), which makes things 
even easier.

Martin.



More information about the pca mailing list