I can reproduce this in a chroot, it appears that this is a dpkg issue. In the old deb there is a file "usr/share/pyshared/gyp-0.1.egg-info - in the new deb this is replaced by a directory:
# dpkg --version ; dpkg -i /var/cache/apt/archives/gyp_0.1~svn1654-1_all.deb ; dpkg -D100 -i /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
...
D000100: setupvnamevbs main='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt' tmp='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-tmp' new='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-new'
dpkg: error processing archive /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb (--install):
unable to open '/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-new': No such file or directory
...
I can reproduce this in a chroot, it appears that this is a dpkg issue. In the old deb there is a file "usr/share/ pyshared/ gyp-0.1. egg-info - in the new deb this is replaced by a directory:
# dpkg --version ; dpkg -i /var/cache/ apt/archives/ gyp_0.1~ svn1654- 1_all.deb ; dpkg -D100 -i /var/cache/ apt/archives/ gyp_0.1~ svn1729- 3_all.deb usr/share/ pyshared/ gyp-0.1. egg-info/ dependency_ links.txt' tmp='/usr/ share/pyshared/ gyp-0.1. egg-info/ dependency_ links.txt. dpkg-tmp' new='/usr/ share/pyshared/ gyp-0.1. egg-info/ dependency_ links.txt. dpkg-new' apt/archives/ gyp_0.1~ svn1729- 3_all.deb (--install): pyshared/ gyp-0.1. egg-info/ dependency_ links.txt. dpkg-new' : No such file or directory
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
...
D000100: setupvnamevbs main='/
dpkg: error processing archive /var/cache/
unable to open '/usr/share/
...