[wp-hackers] On Subversion and 2.5.x-alpha not being in Trunk
Alexander Beutl
xel at netgra.de
Fri May 16 08:24:38 GMT 2008
yep it can not handle them...
I tried to map everything inside there (even the headers) but that doesn't
help by any means because apache will not respond to PROPFIND and stuff...
Here is how I extended to script:
<?php
$info = file_get_contents('http://api.wordpress.org/core/version-check/1.1/'
);
$info = explode("\n", $info);
$version = $info[2];
$file = str_replace('wp-stable','',$_SERVER['REQUEST_URI']);
foreach(get_headers("http://svn.automattic.com/wordpress/tags/$version/$file")
as $header)
header($header);
echo file_get_contents("
http://svn.automattic.com/wordpress/tags/$version/$file");
?>
Anybody any ideas how to make apache just let me map everything?
I wouldn't matter to map all this cause what needs to be accessed would need
to be transfered anyway... so it wouldn't create much overhead if you run it
on localhost...
2008/5/16 DD32 <wordpress at dd32.id.au>:
> Pfft, I thought, "Hey!, Why not just setup a external page which redirects
> SVN to the correct tag/branch"
>
> <?php
> $info = file_get_contents('
> http://api.wordpress.org/core/version-check/1.1/'<http://api.wordpress.org/core/version-check/1.1/%27>
> );
>
> $info = explode("\n", $info);
> $version = $info[2];
>
> header("Location: http://svn.automattic.com/wordpress/tags/$version");
> ?>
>
> ..You'd think that'd work, but as it turns out, SVN cant actually handle
> 301/302 redirections..
>
> On Fri, 16 May 2008 17:11:25 +1000, Alexander Beutl <xel at netgra.de> wrote:
>
>
>>> I'd suggest having:
>>>
>>> http://api.wordpress.org/current-version/1.0/
>>>
>>> That would return one line that contained just the version string, if it
>>> were in place today it would return: 2.5.1
>>>
>>
>>
>> I don't know if that one is new but take a look at:
>>
>> http://api.wordpress.org/core/version-check/1.1/
>>
>> which will return the current version in the 3rd line.
>> Just if this is any help for anyone...
>>
>> I would like to see a "stable"-Tag or "stable"-Branch too.
>> Even if this is a second line one would need to write....
>> Wouldn't be comlex to setup some shellscript to do it with only one call
>>
>> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list