Hi!

On Wed, 2026-01-28 at 13:03:28 +0100, Santiago Vila wrote:
> Package: dpkg-dev
> Version: 1.23.5
> Severity: wishlist

> 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.

Sure, good idea! I implemented this the other day, and just need to
test, otherwise it will be part of the next push and release.

Thanks,
Guillem

Reply via email to