livecheck behaviour
Peter Danecek
Peter.Danecek at bo.ingv.it
Tue Nov 19 07:32:42 PST 2013
On Nov 19, 2013, at 14:10 , Joshua Root <jmr at macports.org> wrote:
> On 2013-11-19 23:50 , Peter Danecek wrote:
>>
>> Hi all,
>> I am just experimenting a bit with livecheck, and wonder if the behaviour below is really the desired behaviour.
>>
>> --- snip ---
>> DEBUG: Port (livecheck) version is 0.8.5
>> DEBUG: Fetching https://pypi.python.org/packages/source/o/obspy/
>> DEBUG: The regex is ">obspy-(\d+\.\d+\.\d+)\.zip<"
>> DEBUG: The regex matched ">obspy-0.8.0.zip<", extracted "0.8.0"
>> DEBUG: The regex matched ">obspy-0.8.3.zip<", extracted "0.8.3"
>> DEBUG: The regex matched ">obspy-0.8.4.zip<", extracted "0.8.4"
>> py-obspy seems to have been updated (port version: 0.8.5, new version: 0.8.4)
>> --- snip ---
>>
>> I would argue 0.8.5 > 0.8.4 so ideally this situation would be recognised. Is there some way to influence the evaluation, e.g. to result "seems to be up to date" in such a case.
>>
>>
>> NOTE: In this case this actually is not really needed (it was only a test). But I am looking at some other situation. Where `updates` got into a different directory. So in that case a somewhat different behaviour would be helpful.
>>
>> It would also be interesting to check for the presence of some regex, in case it is not to judge that the port is up-to-date. Would this be possible somehow?
>
> This behaviour is intentional since not finding the current version
> means you need to fix your livecheck. The wording of the message could
> be different in that case but it should not say "seems to be up to date".
Josh,
I understand this reasoning, and yes, probably not finding current might usually indicate some sort of a problem. However, I was wondering if I could have some influence on this, in the case I intentionally want to overwrite default behaviour.
In the concrete case it is about the Globus (future) ports.
The packages which are bundled into the Globus Toolkit go here:
http://www.globus.org/ftppub/gt5/5.2/stable/packages/src/
Updates between the Toolkit release seem to go here:
http://www.globus.org/ftppub/gt5/5.2/stable/updates/src/
So the idea would be to search matches in the updates directory. If there is no match this would mean there is (probably) no update.
So is there a way to implement this?
Alternatively, one could try to collect matches from both directories and evaluate these. But I think this is not possible.
~petr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131119/346cb892/attachment-0001.p7s>
More information about the macports-dev
mailing list