Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect stable versions in trunk #7

Closed
Rarst opened this issue May 12, 2013 · 3 comments
Closed

Detect stable versions in trunk #7

Rarst opened this issue May 12, 2013 · 3 comments

Comments

@Rarst
Copy link

Rarst commented May 12, 2013

trunk can be stable version, but this cannot be figured on SVN structure level. Need to either fetch readme.txt or go through API.

@tamlyn
Copy link
Member

tamlyn commented Nov 27, 2013

It's worse than that. readme.txt can contain Stable tag: trunk which tells us that the latest stable release is in trunk but to know what the actual version number is we need to parse the main plugin PHP file and the only way to find that file is to download and parse all PHP files in the root of the plugin folder.

That would severely slow down the update process.

@lavoiesl
Copy link
Member

We could also be sneaky and parse the plugin’s page on wordpress.org

The XPath is //a[@itemprop="downloadUrl"]/text() ;)

@lavoiesl
Copy link
Member

This can now be closed.

@tamlyn tamlyn closed this as completed Feb 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants