Reproducer example
$ dpkg-source -x python-wsme_0.5b1-1.dsc dpkg-source: info: extracting python-wsme in python-wsme-0.5b1 dpkg-source: info: unpacking python-wsme_0.5b1.orig.tar.gz dpkg-source: info: unpacking python-wsme_0.5b1-1.debian.tar.gz
$ debuild -S -sa dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package python-wsme dpkg-buildpackage: source version 0.5b1-1 dpkg-buildpackage: source changed by Thomas Goirand <z...@debian.org> dpkg-source --before-build python-wsme-0.5b1 fakeroot debian/rules clean dh clean --with python2 dh_testdir dh_auto_clean Installed /tmp/wsme/debian/bah/python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg running clean 'build/lib.linux-x86_64-2.7' does not exist -- can't clean it 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-2.7' does not exist -- can't clean it debian/rules override_dh_clean make[1]: Entering directory `/tmp/wsme/debian/bah/python-wsme-0.5b1' dh_clean rm -rf d2to1-0.2.7-py2.*.egg build make[1]: Leaving directory `/tmp/wsme/debian/bah/python-wsme-0.5b1' dpkg-source -b python-wsme-0.5b1 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building python-wsme using existing ./python-wsme_0.5b1.orig.tar.gz dpkg-source: warning: executable mode 0755 of 'd2to1-0.2.10-py2.7.egg/d2to1/__init__.py' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'd2to1-0.2.10-py2.7.egg/d2to1/util.py' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'd2to1-0.2.10-py2.7.egg/d2to1/zestreleaser.py' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'd2to1-0.2.10-py2.7.egg/d2to1/core.py' will not be represented in diff dpkg-source: warning: newly created empty file 'd2to1-0.2.10-py2.7.egg/d2to1/extern/__init__.py' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'd2to1-0.2.10-py2.7.egg/d2to1/extern/six.py' will not be represented in diff dpkg-source: warning: file python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/SOURCES.txt has no final newline (either original or modified version) dpkg-source: warning: file python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/requires.txt has no final newline (either original or modified version) dpkg-source: info: local changes detected, the modified files are: python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/PKG-INFO python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/SOURCES.txt python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/dependency_links.txt python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/entry_points.txt python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/not-zip-safe python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/requires.txt python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/EGG-INFO/top_level.txt python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/d2to1/__init__.py python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/d2to1/core.py python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/d2to1/extern/six.py python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/d2to1/util.py python-wsme-0.5b1/d2to1-0.2.10-py2.7.egg/d2to1/zestreleaser.py dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/python-wsme_0.5b1-1.diff.PcJDf5 dpkg-source: info: you can integrate the local changes with dpkg-source --commit dpkg-buildpackage: error: dpkg-source -b python-wsme-0.5b1 gave error exit status 2 debuild: fatal error at line 1357: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed $