Address more PR feedback

- Add libssl-dev dependency to DockerFile, because the package upgrade test still depend on this. It can be removed once a newer package without libssl-dev dependency is uploaded.
- Check pre-reqs in the package script.
This commit is contained in:
Sridhar Periyasamy 2016-03-09 20:15:06 +00:00
parent 1737fa8cbc
commit 53dd5f4a23
4 changed files with 45 additions and 13 deletions

View file

@ -45,9 +45,10 @@ namespace Microsoft.DotNet.Cli.Build
var version = c.BuildContext.Get<BuildVersion>("BuildVersion").SimpleVersion;
var debFile = c.BuildContext.Get<string>("InstallerFile");
var manPagesDir = Path.Combine(Dirs.RepoRoot, "Documentation", "manpages");
var previousVersionURL = $"https://dotnetcli.blob.core.windows.net/dotnet/{channel}/Installers/Latest/dotnet-ubuntu-x64.latest.deb";
Cmd(Path.Combine(Dirs.RepoRoot, "scripts", "package", "package-debian.sh"),
"-v", version, "-i", Dirs.Stage2, "-o", debFile, "-p", packageName, "-m", manPagesDir, "-c", channel)
"-v", version, "-i", Dirs.Stage2, "-o", debFile, "-p", packageName, "-m", manPagesDir, "--previous-version-url", previousVersionURL)
.Execute()
.EnsureSuccessful();
return c.Success();

View file

@ -33,7 +33,6 @@ namespace Microsoft.DotNet.Cli.Build
break;
default:
throw new Exception($"Unknown channel - {channel}");
break;
}
return packageName;