Created
February 21, 2012 05:27
-
-
Save half-ogre/1873956 to your computer and use it in GitHub Desktop.
Fix for NuGet Gallery #417
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var allPackageVersions = packagesQuery.ToList(); | |
var packageVersions = allPackageVersions; ; | |
if (String.IsNullOrEmpty(version) && !allowPrerelease) | |
{ | |
// If there's a specific version given, don't bother filtering by prerelease. You could be asking for a prerelease package. | |
packageVersions = packageVersions.Where(p => !p.IsPrerelease).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment