Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2004-08-05 00:30:00 +0400
committerDuncan Mak <duncan@mono-cvs.ximian.com>2004-08-05 00:30:00 +0400
commit290e861b782ccd776ca12fae697be96b623f6167 (patch)
tree4ffa5c7da9cd32bf9ccd0c8950e154f921721f89 /mcs
parent30a4417a345bf3ed3d5a621a9cd6af7a4ccecc4e (diff)
Add a hack to work around the issue with a 2.0 corlib.
svn path=/branches/mono-1-0/mcs/; revision=31897
Diffstat (limited to 'mcs')
-rw-r--r--mcs/tools/mono-rpm-helpers/ChangeLog5
-rw-r--r--mcs/tools/mono-rpm-helpers/mono-find-provides/mono-find-provides.cs9
2 files changed, 12 insertions, 2 deletions
diff --git a/mcs/tools/mono-rpm-helpers/ChangeLog b/mcs/tools/mono-rpm-helpers/ChangeLog
index bd401e7ec2a..50b5c84d77d 100644
--- a/mcs/tools/mono-rpm-helpers/ChangeLog
+++ b/mcs/tools/mono-rpm-helpers/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-04 Duncan Mak <duncan@ximian.com>
+
+ * mono-find-provides/mono-find-provides.cs: Add a hack to work
+ around the issue with a 2.0 corlib.
+
2004-06-01 Todd Berman <tberman@sevenl.net>
* all: move stuff around so that it builds properly.
diff --git a/mcs/tools/mono-rpm-helpers/mono-find-provides/mono-find-provides.cs b/mcs/tools/mono-rpm-helpers/mono-find-provides/mono-find-provides.cs
index 399ec4eac11..4e650425b75 100644
--- a/mcs/tools/mono-rpm-helpers/mono-find-provides/mono-find-provides.cs
+++ b/mcs/tools/mono-rpm-helpers/mono-find-provides/mono-find-provides.cs
@@ -29,12 +29,17 @@ class FindProvides {
}
static void PrintProvides (string s)
- {
+ {
try {
Assembly a = Assembly.LoadFrom (s);
AssemblyName an = a.GetName ();
- Console.WriteLine ("mono({0}) = {1}", an.Name, an.Version);
+ // hack to work around the issue with a 2.0 corlib
+ if (s.EndsWith ("2.0/mscorlib.dll"))
+ Console.WriteLine ("mono({0}) = {1}", "mscorlib", "2.0.3600.0");
+ else
+ Console.WriteLine ("mono({0}) = {1}", an.Name, an.Version);
+
} catch {}
}
}