Skip to content

replacement of regular file with symlink not detected #44

Description

@Habbie

I have two packages:

$ for f in */pdns-backend-sqlite3_* ; do echo == $f ; dpkg-deb -c $f | grep /schema.sqlite3.sql ; done
== pdns-4.4.0.16.relauth44x.gc8b6f52df-debian-buster/pdns-backend-sqlite3_4.4.0+relauth44x.16.gc8b6f52df-1pdns.buster_amd64.deb
-rw-r--r-- root/root      3043 2021-01-12 16:29 ./usr/share/doc/pdns-backend-sqlite3/schema.sqlite3.sql
== pdns-4.4.0.21.debianupdate44.g1613283c0-debian-buster/pdns-backend-sqlite3_4.4.0+debianupdate44.21.g1613283c0-1pdns.buster_amd64.deb
-rw-r--r-- root/root      3043 2021-01-29 08:34 ./usr/share/pdns-backend-sqlite3/schema/schema.sqlite3.sql
lrwxrwxrwx root/root         0 2021-01-29 08:34 ./usr/share/doc/pdns-backend-sqlite3/schema.sqlite3.sql -> ../../pdns-backend-sqlite3/schema/schema.sqlite3.sql

The file was moved, and its old location was symlinked to the new one. However, pkgdiff reports the new location as 'added' and the old location as 'unchanged' - presumably because the content is still the same. I'd rather have seen some note that there was in fact a change, so I would know to have a look.

(By the way, thank you for pkgdiff, it's such an awesome tool!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions