Only create the first instance of a file shared between packages
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 17 Aug 2012 11:07:05 +0000 (14:07 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 17 Aug 2012 11:07:05 +0000 (14:07 +0300)
commitf7f5f88f9f3d6587e747b034ccb64a3f00ff4e1e
tree65978359ad6c098f643538a4484156bb0b95bafc
parentd6b925342f98db2af441e59ddbd3a2b9cde5dfaf
Only create the first instance of a file shared between packages

- When packages share an identical file, we only need to create the
  first one we encounter and skip it for the rest (reverse already
  happens, and must happen, on erase). This has the benefit of
  getting the timestamp to match the first file, which often is
  also the last one to get removed. Also when lots of shared files
  are involved (such as in multilib installations), this can give
  several percents worth of speed gain as we dont unnecessarily rewrite
  the same contents over and over.
lib/transaction.c