Package: dh-debputy
Version: 0.1.83
Severity: normal

Hello.
The following shell script reproduces the issue.
Instead of copying doc{1,2}.txt into usr/share/doc/bar/ (directory),
debputy copies doc2.txt into usr/share/doc/bar (file).


#!/bin/sh
set -Cefu
mkdir -p tmpdir/foo/debian/source
cd tmpdir
echo '3.0 (native)' > foo/debian/source/format
echo doc1 > foo/doc1.txt
echo doc2 > foo/doc2.txt
cat > foo/debian/changelog <<EOF
foo (0) UNRELEASED; urgency=medium

  * Test.

 -- Nicolas Boulenguez <[email protected]>  Mon, 16 Mar 2026 07:49:42 +0000
EOF
cat > foo/debian/control <<EOF
Source: foo
Maintainer: Nicolas Boulenguez <[email protected]>
Section: games
Build-Depends: dh-debputy
Build-Driver: debputy
Standards-Version: 4.7.3

Package: foo
Architecture: all
Description: bla
 bla
EOF
cat > foo/debian/copyright <<EOF
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: foo

Files: *
Copyright: 2026 Nicolas Boulenguez <[email protected]>
EOF
cat > foo/debian/debputy.manifest <<EOF
manifest-version: '0.1'
installations:
- install-docs:
    sources:
    - doc1.txt
    - doc2.txt
    dest-dir: usr/share/doc/bar
EOF
dpkg-buildpackage foo
ar -p foo_0_all.deb data.tar.xz | tar --extract --xz ./usr/share/doc/bar
[ -d usr/share/doc/bar ] || echo 'usr/share/doc/bar should be a directory.'
diff foo/doc2.txt usr/share/doc/bar && echo 'It is a copy of the last source.'

Reply via email to