Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
ifolder3
ifolder_upgrade.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ifolder_upgrade.patch of Package ifolder3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' src/UI/Linux/LinuxClient/library/DomainController.cs src/UI/Linux/LinuxClient/library/DomainController.cs --- src/UI/Linux/LinuxClient/library/DomainController.cs 2009-06-02 10:16:48.000000000 +0530 +++ src/UI/Linux/LinuxClient/library/DomainController.cs 2009-10-21 13:56:33.000000000 +0530 @@ -1149,6 +1149,34 @@ try { status = (UpgradeResult)this.ifws.CheckForUpdate(domainID, out serverVersion); + + string clientVersion = Util.Version(); + Version versionClient = new Version(clientVersion); + Version versionServer = new Version(serverVersion); + if(status == UpgradeResult.UpgradeAvailable) + { + if (((versionClient.Major == versionServer.Major) && (versionClient.Minor < versionServer.Minor)) || (versionClient.Major < versionServer.Major)) + { + status = UpgradeResult.UpgradeAvailable; + } + else + { + status = UpgradeResult.Latest; + } + + if((versionClient.Major == versionServer.Major ) && (versionClient.Minor == versionServer.Minor)) + { + if (((versionClient.Build == versionServer.Build) && (versionClient.Revision < versionServer.Revision)) || (versionClient.Build < versionServer.Build)) + { + status = UpgradeResult.UpgradeAvailable; + } + else + { + status = UpgradeResult.Latest; + } + + } + } } catch(Exception ex) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' src/UI/Linux/LinuxClient/library/Util.cs.in src/UI/Linux/LinuxClient/library/Util.cs.in --- src/UI/Linux/LinuxClient/library/Util.cs.in 2009-06-02 10:16:48.000000000 +0530 +++ src/UI/Linux/LinuxClient/library/Util.cs.in 2009-10-21 13:56:55.000000000 +0530 @@ -477,7 +477,13 @@ Console.WriteLine("Error showing About dialog: {0}", e.Message); } } - + + public static string Version() + { + string ver = "@_VERSION_@"; + return ver; + } + /// <summary> /// Gets the preferences WIndow /// </summary>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor