Bug#1126558: dpkg-source: Format of "local changes detected"

Santiago Vila <[email protected]> Wed, 28 Jan 2026 13:03:28 +0100
Newsgroups gmane.linux.debian.devel.dpkg.bugs
Message-ID <8e045f78-8773-4485-9051-29127e60ce82__34917.9892263905$1769601945$gmane$org@debian.org>
Package: dpkg-dev
Version: 1.23.5
Severity: wishlist

Hello Guillem et al.

When a source package does not clean everything it should, dpkg-source shows a message like this:

dpkg-source: info: local changes detected, the modified files are:
  yp-tools-4.2.3/po/stamp-po

I wonder if it would be possible to drop the first component of that
("yp-tools-4.2.3" in the example), so that the output could be used
directly (modulo leading spaces) in debian/clean (or also as the
argument of some "rm -f" command in debian/rules).

Something like this:

dpkg-source: info: local changes detected, the modified files are:
  po/stamp-po

In fact, I once fixed a debian/clean file recently in which
the maintainer just used the output of dpkg-source "as is"
without realizing about the extra component.

Thanks.