[pca] Can pca check two different local sources?

Craig S. Bell craig.s.bell at gmail.com
Thu Sep 29 23:49:35 CEST 2011


Martin Paul wrote:
> I'd be happy about everybody testing this new development version.

Martin, I tried 20110928-01 with my "first files, then proxy" scenario
for patchurl and xrefurl.
Both worked just as designed.  =-)  That's very nice stuff... details
are below.

Bonus: I like how it will never try MoS without a keyword -- that's
exactly what I want for my clients.
I can take "user=dontask" out of my client config file, since it will
not unintentionally try MoS now.

Thank you so much, Martin.  Just a week ago, I didn't know that I
wanted this feature.  =-)
Let me know if I can run any other tests...  -cheers, CSB
________________

Here are my two-element patchurl and xrefurl.  /path/to/cache is the
proxy's patchdir, likewise for xref.

$ grep url= pca.conf
patchurl=file:/path/to/cache http://proxyhost/cgi-bin/pca-proxy.cgi
xrefurl=file:/path/to/xref http://proxyhost/cgi-bin/pca-proxy.cgi
________________

First, let's try to download one that's already cached:

$ ls -1 /path/to/cache/147708*
/path/to/cache/147708-01.zip

$ pca -V -d 147708
<snip>
Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
147708 01 = 01 ---   7 SunOS 5.10: ldma patch

Looking for 147708-01 (1/1)
Trying file:/path/to/cache
Done
------------------------------------------------------------------------------
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed

________________

Next, let's try one that isn't cached yet:

$ ls -1 /path/to/cache/147159*
/path/to/cache/147159*: No such file or directory

$ pca -V -d 147159
<snip>
Looking for 147159-03 (1/1)
Trying file:/path/to/cache
Failed
Trying http://proxyhost/cgi-bin/pca-proxy.cgi
<snip>
2011-09-29 15:13:53 (989 KB/s) - `/var/tmp/147159-03.tmp' saved
[5098821/5098821]

Removing /tmp/pca.248890
Done
------------------------------------------------------------------------------
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed

________________

Same deal for the xref... it all just works.



More information about the pca mailing list