fetcher git: don't simulate progress when clone command failed
This commit is contained in:
parent
1d9f40bca3
commit
23fc46bc09
|
@ -135,8 +135,9 @@ namespace SparkleLib {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.git.WaitForExit ();
|
this.git.WaitForExit ();
|
||||||
SparkleHelpers.DebugInfo ("Git", "Exit code " + this.git.ExitCode.ToString ());
|
SparkleHelpers.DebugInfo ("Git", "Exit code: " + this.git.ExitCode);
|
||||||
|
|
||||||
|
if (this.git.ExitCode == 0) {
|
||||||
while (percentage < 100) {
|
while (percentage < 100) {
|
||||||
percentage += 25;
|
percentage += 25;
|
||||||
|
|
||||||
|
@ -150,14 +151,14 @@ namespace SparkleLib {
|
||||||
base.OnProgressChanged (100);
|
base.OnProgressChanged (100);
|
||||||
Thread.Sleep (1000);
|
Thread.Sleep (1000);
|
||||||
|
|
||||||
if (this.git.ExitCode != 0) {
|
|
||||||
return false;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
InstallConfiguration ();
|
InstallConfiguration ();
|
||||||
InstallExcludeRules ();
|
InstallExcludeRules ();
|
||||||
AddWarnings ();
|
AddWarnings ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue