Commit 9ace8a6f authored by Antoine Cellerier's avatar Antoine Cellerier

update system :

only take into account "stable" releases when release_type == stable
stable and testing when == testing
stable, testing and nighlty when == nightly
all when !=
(still need a way to change release_type in the intf ... i'm lazy. default
set to "testing")
parent c1165dc9
......@@ -106,7 +106,7 @@ UpdateVLC::UpdateVLC( intf_thread_t *_p_intf, wxWindow *p_parent ):
{
/* Initializations */
p_intf = _p_intf;
release_type = wxT( "stable" );
release_type = wxT( "testing" );
SetIcon( *p_intf->p_sys->p_icon );
SetAutoLayout( TRUE );
......@@ -507,6 +507,32 @@ void UpdateVLC::UpdateUpdatesTree()
it = m_versions.begin();
while( it != m_versions.end() )
{
if( it->type != release_type )
{
it++;
continue;
}
if( release_type != wxT( "stable" ) && it->type == wxT( "stable" ) )
{
it++;
continue;
}
if( release_type != wxT( "stable" ) && release_type != wxT( "testing" )
&& it->type == wxT( "testing" ) )
{
it++;
continue;
}
if( release_type != wxT( "stable" ) && release_type != wxT( "testing" )
&& release_type != wxT( "nightly" ) )
{
it++;
continue;
}
if( atoi((const char *)it->major.mb_str()) <
atoi(PACKAGE_VERSION_MAJOR)
|| ( atoi((const char *)it->major.mb_str()) ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment