Skip to content

Commit

Permalink
patch scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucietta O'Hind committed Jan 16, 2025
1 parent 8806c8f commit 5a45ea8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ impl ManifestInfo {
BundleContent::Unknown => return FrameworkVersion::Unknown,
BundleContent::StateSnapshot => {
let man_path = self.archive_dir.join(self.contents.filename());
dbg!(&man_path);

// first check if the v7 manifest will parse
if let Ok(_bak) = load_snapshot_manifest(&man_path) {
self.version = FrameworkVersion::V7;
Expand Down Expand Up @@ -103,15 +101,14 @@ pub fn scan_dir_archive(
// filenames may be in .gz format
let filename = content_opt.unwrap_or(BundleContent::Unknown).filename();
let pattern = format!(
"{}/**/{}",
"{}/**/{}.*", // also try .gz
path.to_str().context("cannot parse starting dir")?,
filename,
);

let mut archive = BTreeMap::new();

for entry in glob(&pattern)? {
dbg!(&entry);
match entry {
Ok(manifest_path) => {
let dir = manifest_path
Expand Down

0 comments on commit 5a45ea8

Please sign in to comment.