Skip to content

Commit 2c88965

Browse files
committed
message
1 parent 75ef1f9 commit 2c88965

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/AppInstallerCLICore/Workflows/ConfigurationFlow.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,9 @@ namespace AppInstaller::CLI::Workflow
17141714
IConfigurationUnitProcessorDetails3 unitProcessor3;
17151715
if (unit.try_as(unitProcessor3))
17161716
{
1717-
Node& node = FindNodeForFilePath(unitProcessor3.Path());
1717+
winrt::hstring unitPath = unitProcessor3.Path();
1718+
AICLI_LOG(Config, Verbose, << "Found unit `" << Utility::ConvertToUTF8(unit.UnitType()) << "` at: " << Utility::ConvertToUTF8(unitPath));
1719+
Node& node = FindNodeForFilePath(unitPath);
17181720
node.Units.emplace_back(std::move(unit));
17191721
}
17201722
}
@@ -1814,15 +1816,20 @@ namespace AppInstaller::CLI::Workflow
18141816

18151817
for (const auto& package : source.Packages)
18161818
{
1819+
AICLI_LOG(Config, Verbose, << "Exporting package `" << package.Id << "` at: " << package.InstalledLocation);
1820+
18171821
auto packageUnit = anon::CreateWinGetPackageUnit(package, source, context.Args.Contains(Args::Type::IncludeVersions), sourceUnit, packageUnitType);
18181822
configContext.Set().Units().Append(packageUnit);
18191823

18201824
// Try package settings export.
18211825
auto unitsForPackage = unitProcessorTree.GetResourcesForPackage(package);
18221826
for (auto itr = unitsForPackage.begin(); itr != unitsForPackage.end(); ++itr)
18231827
{
1828+
winrt::hstring unitType = itr->UnitType();
1829+
AICLI_LOG(Config, Verbose, << " exporting unit `" << Utility::ConvertToUTF8(unitType));
1830+
18241831
ConfigurationUnit configUnit = anon::CreateConfigurationUnitFromUnitType(
1825-
itr->UnitType(),
1832+
unitType,
18261833
Utility::ConvertToUTF8(packageUnit.Identifier()));
18271834

18281835
auto exportedUnits = anon::ExportUnit(context, configUnit);

src/AppInstallerCLIE2ETests/ConfigureExportCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void ExportAll()
148148
{
149149
var exportDir = TestCommon.GetRandomTestDir();
150150
var exportFile = Path.Combine(exportDir, "exported.yml");
151-
var result = TestCommon.RunAICLICommand(Command, $"--all -o {exportFile}", timeOut: 1200000);
151+
var result = TestCommon.RunAICLICommand(Command, $"--all --verbose -o {exportFile}", timeOut: 1200000);
152152
Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode);
153153
Assert.True(File.Exists(exportFile));
154154

0 commit comments

Comments
 (0)