ostreedev / ostree-rs-ext

Rust library with higher level APIs on top of the core ostree API
Apache License 2.0
74 stars 24 forks source link

tar: Fix multiple hardlinks #558

Closed cgwalters closed 10 months ago

cgwalters commented 10 months ago

The previous commit here (43e1648e97ef82f2cb86fd0813a5f338585eea97) handled the case of one hardlink, but the logic for the secondary one was backwards.

I noticed this when generating a derived image, in some cases we only end up with /usr/lib/sysimage/rpm-ostree-base-db as modified, which causes really confusing semantics that look like packages going missing.