Skip to content

Commit

Permalink
Update tint processor according to the new traits definition
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Mar 28, 2024
1 parent 42c8381 commit 185bc49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/procdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ impl TintProcessor {

for target_path in self.profile.get_targets() {
log::debug!("Find binary dependencies for {target_path}");
paths.extend(ElfScanner::new().scan(Path::new(target_path).to_owned()));
paths.extend(ElfScanner::new().scan(Path::new(target_path).to_owned()).get_paths().to_owned());

log::debug!("Find package dependencies for {target_path}");
// XXX: This will re-scan again and again, if target_path belongs to the same package
paths.extend(DebPackageScanner::new(self.autodeps).scan(Path::new(target_path).to_owned()));
paths.extend(DebPackageScanner::new(self.autodeps).scan(Path::new(target_path).to_owned()).get_paths().to_owned());

// Add the target itself
paths.insert(Path::new(target_path).to_owned());
Expand Down Expand Up @@ -253,7 +253,7 @@ impl TintProcessor {
if self.profile.has_post_hook() {
log::debug!("Post-hook:\n{}", self.profile.get_post_hook());
}
ContentFormatter::new(&paths).set_removed(&p).format();
ContentFormatter::new(&paths).set_removed(&p).set_bundled_packages(self.profile.get_bundled_packages()).format();
} else {
// Run post-hook (doesn't affect changes apply)
if self.profile.has_post_hook() {
Expand Down

0 comments on commit 185bc49

Please sign in to comment.