[RombaSharp] Verify archive works

Also verified that "only-needed" works as well, it was just a little off with one piece of logic.
This commit is contained in:
Matt Nadareski
2018-02-08 01:21:45 -08:00
parent 4ff5af4ffb
commit 6b0402d84d

View File

@@ -46,8 +46,6 @@ namespace RombaSharp
bool useGolangZip, bool useGolangZip,
bool noDb) bool noDb)
{ {
Globals.Logger.Error("This feature is not yet implemented: archive");
// First we want to get just all directories from the inputs // First we want to get just all directories from the inputs
List<string> onlyDirs = new List<string>(); List<string> onlyDirs = new List<string>();
foreach (string input in inputs) foreach (string input in inputs)
@@ -190,7 +188,7 @@ namespace RombaSharp
} }
// Create the sorting object to use and rebuild the needed files // Create the sorting object to use and rebuild the needed files
ArchiveScanLevel asl = Utilities.GetArchiveScanLevelFromNumbers((onlyNeeded ? 0 : 1), (onlyNeeded ? 0 : 1), (onlyNeeded ? 0 : 1), (onlyNeeded ? 0 : 1)); ArchiveScanLevel asl = Utilities.GetArchiveScanLevelFromNumbers(2, 2, 2, 2);
need.RebuildGeneric(onlyDirs, _depots.Keys.ToList()[0], false /*quickScan*/, false /*date*/, need.RebuildGeneric(onlyDirs, _depots.Keys.ToList()[0], false /*quickScan*/, false /*date*/,
false /*delete*/, false /*inverse*/, OutputFormat.TorrentGzip, true /*romba*/, asl, false /*updateDat*/, false /*delete*/, false /*inverse*/, OutputFormat.TorrentGzip, true /*romba*/, asl, false /*updateDat*/,
null /*headerToCheckAgainst*/, true /* chdsAsFiles */); null /*headerToCheckAgainst*/, true /* chdsAsFiles */);