Using conditional GET or wget timestamping for the catalog files
Dagobert Michelsen
dam at opencsw.org
Mon Oct 28 20:13:59 CET 2013
Hi Peter,
Am 28.10.2013 um 19:45 schrieb Peter Bonivart <bonivart at opencsw.org>:
> On Mon, Oct 28, 2013 at 6:30 PM, Maciej (Matchek) Bliziński
> <maciej at opencsw.org> wrote:
>>
>> 2013/10/28 Peter Bonivart <bonivart at opencsw.org>:
>>> Option -O is used all over unfortunately.
>>
>> Is it more "-O happens to be used" or "-O must be used by design"?
>
> From taking a quick look at the code section where catalogs are
> fetched it seems to be a case of "download to catalog.tmp, check if
> ok, if so rename to catalog, otherwise we still have the old catalog".
>
> I guess one could do it the other way around, rename current catalog
> first, download without -O, check and rename back if not successful.
>
> It's also used to download to another location than current work dir,
> so -O sets an absolute path like "/var/opt/csw/pkgutil/catalog....".
> That could be worked around by changing current work dir.
Yes, but the dates must be preserved during copying. Maybe --force
should ignore the timestamping on -U ?
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2351 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20131028/efe30082/attachment.p7s>
More information about the maintainers
mailing list