[Frugalware-git] frugal-mono-tools: *fixes compare version (options force will be added)

bouleetbil bouleetbil at frogdev.info
Mon Aug 30 11:12:03 CEST 2010


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-mono-tools.git;a=commitdiff;h=e1dd29b7d5d5c95fbf9e9a4e973419d14113fbe9

commit e1dd29b7d5d5c95fbf9e9a4e973419d14113fbe9
Author: bouleetbil <bouleetbil at frogdev.info>
Date:   Mon Aug 30 11:35:31 2010 +0000

*fixes compare version (options force will be added)

diff --git a/frugal-mono-tools/Update.cs b/frugal-mono-tools/Update.cs
index 5626a60..cc3b67e 100644
--- a/frugal-mono-tools/Update.cs
+++ b/frugal-mono-tools/Update.cs
@@ -44,8 +44,8 @@ namespace frugalmonotools

if(pkg.packagename==pkginstall.packagename)
{
-						//basic test for beginning
-						if(pkg.packageversion!=pkginstall.packageversion)
+						//TODO don't forgot options=("force")
+						if(string.Compare(pkginstall.packageversion,pkg.packageversion)<0)
{
UpdatePkg.Add(pkg);
}


More information about the Frugalware-git mailing list