You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@ -1082,14 +1082,14 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
static void LoadLocalizedAssemblies (List<string> assemblies)
|
||||
{
|
||||
var other = i18n.Select (x => "I18N." + x + (x.Length > 0 ? "." : "") + "dll");
|
||||
string error = null;
|
||||
bool error = false;
|
||||
|
||||
foreach (string name in other) {
|
||||
try {
|
||||
Assembly a = LoadAssembly (name);
|
||||
|
||||
if (a == null) {
|
||||
error = "Failed to load " + name;
|
||||
error = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -1105,8 +1105,8 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
}
|
||||
}
|
||||
|
||||
if (error != null) {
|
||||
Error ("Couldn't load one or more of the i18n assemblies: " + error);
|
||||
if (error) {
|
||||
Error ("Couldn't load one or more of the i18n assemblies.");
|
||||
Environment.Exit (1);
|
||||
}
|
||||
}
|
||||
@ -1159,7 +1159,7 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
Assembly a = universe.LoadFile (path);
|
||||
|
||||
foreach (AssemblyName an in a.GetReferencedAssemblies ()) {
|
||||
a = universe.Load (an.FullName);
|
||||
LoadAssembly (an.FullName);
|
||||
if (!QueueAssembly (files, a.CodeBase))
|
||||
return false;
|
||||
}
|
||||
@ -1221,6 +1221,7 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
static void Error (string msg, params object [] args)
|
||||
{
|
||||
Console.Error.WriteLine ("ERROR: {0}", string.Format (msg, args));
|
||||
throw new Exception ();
|
||||
Environment.Exit (1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user