Permalink
Browse files

made changes for the bug fixes

  • Loading branch information...
jianyunt committed Jan 13, 2016
1 parent d1b2bbd commit 60247aa17761ce8e305c91a28974e1fc68d24466
Showing with 4,312 additions and 2,037 deletions.
  1. +18 −0 PackageManagement/Api/IHostAPI.cs
  2. +16 −0 PackageManagement/Api/IResponseApi.cs
  3. +2 −1 PackageManagement/Constants.cs
  4. +2 −1 PackageManagement/Implementation/DefaultPackageProvider.cs
  5. +101 −42 PackageManagement/Implementation/PackageManagementService.cs
  6. +6 −1 PackageManagement/Implementation/PackageProvider.cs
  7. +30 −7 PackageManagement/Implementation/ProviderBase.cs
  8. +10 −0 PackageManagement/Implementation/Request.cs
  9. +28 −2 PackageManagement/Implementation/RequestObject.cs
  10. +77 −0 PackageManagement/Implementation/SoftwareIdentityRequestObject.cs
  11. +2 −2 PackageManagement/Packaging/BaseElement.cs
  12. +18 −2 PackageManagement/Packaging/Iso19770_2.cs
  13. +292 −16 PackageManagement/Packaging/MediaQuery.cs
  14. +38 −3 PackageManagement/Packaging/Swidtag.cs
  15. +47 −11 PackageManagement/Resources/Messages.Designer.cs
  16. +24 −10 PackageManagement/Resources/Messages.resx
  17. +2 −1 PackageManagement/Utility/Collections/FilenameEqualityComparer.cs
  18. +6 −0 PackageManagement/Utility/Collections/PathEqualityComparer.cs
  19. +0 −174 PackageManagement/sources
  20. +0 −3 PackageManagement/sources.dep
  21. +3 −3 PowerShell.Module/Cmdlets/AsyncCmdLet.cs
  22. +56 −1 PowerShell.Module/Cmdlets/CmdletBase.cs
  23. +20 −3 PowerShell.Module/Cmdlets/CmdletWithProvider.cs
  24. +114 −84 PowerShell.Module/Cmdlets/CmdletWithSearchAndSource.cs
  25. +1 −1 PowerShell.Module/Cmdlets/FindPackage.cs
  26. +1 −1 PowerShell.Module/Cmdlets/FindPackageProvider.cs
  27. +7 −9 PowerShell.Module/Cmdlets/InstallPackageProvider.cs
  28. +19 −0 PowerShell.Module/Cmdlets/RegisterPackageSource.cs
  29. +2 −0 PowerShell.Module/Constants.cs
  30. +9 −0 PowerShell.Module/Resources/Messages.Designer.cs
  31. +44 −29 PowerShell.Module/Resources/Messages.resx
  32. +8 −8 Providers/Inbox/Archivers/Properties/AssemblyInfo.cs
  33. +1 −1 Providers/Inbox/Archivers/Resources/Messages.Designer.cs
  34. +2 −2 Providers/Inbox/CoreProviders/Bootstrap/BootstrapProvider.cs
  35. +3 −2 Providers/Inbox/CoreProviders/Bootstrap/BootstrapRequest.cs
  36. +1 −1 Providers/Inbox/CoreProviders/Bootstrap/Swid.cs
  37. +23 −5 Providers/Inbox/CoreProviders/Resources/Messages.Designer.cs
  38. +11 −5 Providers/Inbox/CoreProviders/Resources/Messages.resx
  39. +0 −248 Providers/Inbox/CoreProviders/WebDownloader/WebDownloader.cs
  40. +12 −1 Providers/Inbox/MsiProvider/MsiProvider.cs
  41. +0 −1 Providers/Inbox/MsiProvider/Resources/Messages.resx
  42. +2 −2 Providers/Inbox/MsuProvider/MsuProvider.cs
  43. +0 −1 Providers/Inbox/MsuProvider/Resources/Messages.resx
  44. +119 −2 Providers/Inbox/PowerShell.MetaProvider/PackageProviderFunctions.psm1
  45. +2 −0 Providers/Inbox/PowerShell.MetaProvider/PowerShell.MetaProvider.csproj
  46. +225 −39 Providers/Inbox/PowerShell.MetaProvider/PowerShellMetaProvider.cs
  47. +11 −0 Providers/Inbox/PowerShell.MetaProvider/Resources/Messages.Designer.cs
  48. +4 −2 Providers/Inbox/PowerShell.MetaProvider/Resources/Messages.resx
  49. +39 −2 Providers/Inbox/PowerShell.MetaProvider/SoftwareIdentity.cs
  50. +76 −145 Providers/Inbox/PowerShellGet/PSGet.Format.ps1xml
  51. BIN Providers/Inbox/PowerShellGet/PSGet.Resource.psd1
  52. +2,276 −1,086 Providers/Inbox/PowerShellGet/PSModule.psm1
  53. BIN Providers/Inbox/PowerShellGet/PowerShellGet.psd1
  54. BIN Providers/Inbox/PowerShellGet/en-US/PSGet.Resource.psd1
  55. +3 −3 Test/ModuleTests/tests/find-packageprovider.tests.ps1
  56. +21 −4 Test/ModuleTests/tests/get-packageprovider.tests.ps1
  57. +121 −47 Test/ModuleTests/tests/import-packageprovider.tests.ps1
  58. +62 −1 Test/ModuleTests/tests/nuget.tests.ps1
  59. +5 −5 Test/ModuleTests/tests/psget.tests.ps1
  60. +237 −0 Test/Unit/Providers/PSOneGetTestProvider/9.9/OneGetTestProvider.psm1
  61. +20 −0 Test/Unit/Providers/PSOneGetTestProvider/9.9/PSOneGetTestProvider.psd1
  62. +31 −15 Test/run-tests.ps1
  63. +2 −2 assembly-version.cs
@@ -189,6 +189,24 @@ public interface IHostApi {
/// <returns></returns>
bool ShouldContinueWithUntrustedPackageSource(string package, string packageSource);
+ /// <summary>
+ /// Allow a package provider to comfirm a user whether the process should continue
+ /// </summary>
+ /// <param name="query">Query that inquires whether the cmdlet should continue.</param>
+ /// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>
+ /// <param name="yesToAll">True if and only if the user selects the yesToall option. If this is already True, ShouldContinue will bypass the prompt and return True.</param>
+ /// <param name="noToAll">True if and only if the user selects the noToall option. If this is already True, ShouldContinue will bypass the prompt and return False.</param>
+ /// <returns></returns>
+ bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll);
+
+ /// <summary>
+ /// Allow a package provider to comfirm a user whether the process should continue
+ /// </summary>
+ /// <param name="query">Query that inquires whether the cmdlet should continue.</param>
+ /// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>
+ /// <returns></returns>
+ bool ShouldContinue(string query, string caption);
+
/// <summary>
/// Asks an arbitrary true/false question of the user.
/// </summary>
@@ -34,6 +34,22 @@ public interface IResponseApi {
/// <returns></returns>
string YieldSoftwareIdentity(string fastPath, string name, string version, string versionScheme, string summary, string source, string searchKey, string fullPath, string packageFileName);
+ /// <summary>
+ /// Used by a provider to return a swidtag in the form of an xml
+ /// Provider has the option to commit immediately
+ /// </summary>
+ /// <param name="xmlSwidTag"></param>
+ /// <param name="commitImmediately"></param>
+ /// <returns></returns>
+ string YieldSoftwareIdentityXml(string xmlSwidTag, bool commitImmediately);
+
+ /// <summary>
+ /// Adds a tagId to a SoftwareIdentity object
+ /// </summary>
+ /// <param name="tagId"></param>
+ /// <returns></returns>
+ string AddTagId(string tagId);
+
/// <summary>
/// Adds an arbitrary key/value pair of metadata to a SoftwareIdentity
///
@@ -58,6 +58,8 @@ internal static class Messages {
internal const string DependentPackageFailedInstall = "MSG:DependentPackageFailedInstall_dependency";
internal const string DestinationPathNotSet = "MSG:DestinationPathNotSet";
internal const string FailedProviderBootstrap = "MSG:FailedProviderBootstrap";
+ internal const string ProviderNotResponsive = "MSG:ProviderNotResponsive";
+ internal const string ProviderTimeoutExceeded = "MSG:ProviderTimeoutExceeded";
internal const string FailedPowerShellMetaProvider = "MSG:FailedPowerShellMetaProvider";
internal const string FileFailedVerification = "MSG:FileFailedVerification";
internal const string HashNotEqual = "MSG:HashNotEqual";
@@ -98,7 +100,6 @@ internal static class Messages {
internal const string FileNotFound = "MSG:FileNotFound";
internal const string InvalidFileType = "MSG:InvalidFileType";
internal const string ProviderNameIsNullOrEmpty = "MSG:ProviderNameIsNullOrEmpty";
- internal const string UnableToImportModule = "MSG:UnableToImportModule";
internal const string FailedToImportProvider = "MSG:FailedToImportProvider";
internal const string ModuleNotFound = "MSG:ModuleNotFound";
internal const string NoMatchFoundForCriteria = "MSG:NoMatchFoundForCriteria";
@@ -16,12 +16,13 @@
namespace Microsoft.PackageManagement.Internal.Implementation
{
using System;
+ using PackageManagement.Internal.Packaging;
using Providers;
/// <summary>
/// This DefaultPackageProvider type is mainly used for the PowerShell console output.
/// </summary>
- public class DefaultPackageProvider : IPackageProvider {
+ public class DefaultPackageProvider : Swidtag, IPackageProvider {
private readonly string _providerName;
private readonly string _providerVersion;
Oops, something went wrong.

0 comments on commit 60247aa

Please sign in to comment.