Skip to content

Commit

Permalink
fix: revert removing adding link source to pendingPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Nov 27, 2024
1 parent ab08688 commit 5806b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/deb/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ func extractData(pkgReader io.ReadSeeker, options *ExtractOptions) error {
ExtractInfos: extractInfos,
}
pendingHardLinks[basePath] = append(pendingHardLinks[basePath], info)
pendingPaths[basePath] = true
} else {
return err
}
Expand Down Expand Up @@ -372,6 +373,7 @@ func handlePendingHardLinks(options *ExtractOptions, pendingHardLinks map[string
if err != nil {
return err
}
delete(pendingPaths, sourcePath)
delete(pendingPaths, targetPath)

// Create the remaining hard links.
Expand Down

0 comments on commit 5806b0b

Please sign in to comment.