Package: debhelper
Version: 7.0.10
Severity: minor
The man page for 'dh_install' describes the following feature for
compatibility level 7+:
=====
From debhelper compatability level 7 on, if --sourcedir is not
specified, dh_install will install files from debian/tmp if the
directory contains the files. Otherwise, it will install files
from the current directory.
=====
While this describes a useful feature, the actual behaviour does not
quite match this description.
If the named source file is not found in the current directory, the
error message has changed between compatibility level 6 to 7, and the
new error message is confusing.
=====
$ echo '6' > debian/compat
$ dh_install FOO foo/
cp: cannot stat `./FOO': No such file or directory
dh_install: command returned error code 256
$ echo '7' > debian/compat
$ dh_install FOO foo/
cp: cannot stat `debian/tmp/FOO': No such file or directory
dh_install: command returned error code 256
=====
The user didn't do anything to request looking in the 'debian/tmp/'
directory, so this message is not helpful in debugging the error.
As per the description in the manpage, the files should only be
sourced from the 'debian/tmp/' directory if they actually exist there;
the non-existence of files in that directory should not cause an error
message.
The message should instead indicate that the file was not found in the
*current* directory (i.e. the file './FOO' in the above example), as
per previous compatibility levels' behaviour.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]