[pca] Jar downloading with proxy
Martin Paul
martin at par.univie.ac.at
Wed Feb 25 10:41:39 CET 2009
Hi Laurent,
> I wanted to give a try to this new option:
> * New option to download patches in JAR format (--jar)
The new option shouldn't be misunderstood - it does not mean that you
can force pca to exclusively use JAR files. I added it for a pca user so
she could use pca as a patch download tool for JAR files in her wrapper.
The only thing that --jar is that pca will ask sunsolve for a jar file
instead of a zip file.
> But I'm still only getting the zip files, provided for by the PCA proxy,
> which is also the same version (same file, actually).
> Is that supported?
Despite its restrictions, this should work, but maybe differently than
you tried. As --jar only has an effect when pca talks to sunsolve, you
have to put "jar=1" into pca-proxy.conf. On the client, you do not need
--jar; the client asks the proxy for just for "123456-78", but not for a
certain file format.
For pca, all patch formats are equal. When checking whether a patch
already exists, it looks for all extensions (zip, jar, tar.Z, tar) and
the first it finds is used. So even when --jar is used, you must make
sure that a zip file of the same patch doesn't exist already, otherwise
the proxy will deliver that.
So if you have a proxy and want to use jar files exclusively, put
"jar=1" into pca-proxy.conf and remove all .zip files in the proxy's
patch directory. Any future requests from clients will make the proxy
ask sunsolve for the jar file, and deliver that to the client.
Hope this clears things up,
Martin.
More information about the pca
mailing list