You have been subscribed to a public bug:

I have a manpage that starts with a "Hey, EMACS:" line [0], which is how
the example files is created when following the Debian new maintainer's
guide.

distutils-extra considers a file that matched '*.[0123456789]' as a
valid man page only if it starts with the string ".TH " [1]. This
results in that manpage to not be automatically recognized, and has 2
consequences:

- You need to add a line in MANIFEST.in with "include doc/*"
- The file appears in the list printed after "WARNING: the following files are 
not recognized by DistUtilsExtra.auto" (even though the file is covered by 
MANIFEST.in, just reported bug 893335)

Maybe the check to see if the file is a valid manpage should do something like 
this:
    if line.startswith('.TH ') or line.startswith('.\"'):

[0] 
bazaar.launchpad.net/~emilien-klein/nautilus-image-manipulator/trunk/view/110/doc/nautilus-image-manipulator.1
[1] 
http://bazaar.launchpad.net/~python-distutils-extra-hackers/python-distutils-extra/debian/view/head:/DistUtilsExtra/auto.py#L304

** Affects: python-distutils-extra (Ubuntu)
     Importance: Undecided
     Assignee: Dominique Lasserre (lasall)
         Status: Fix Committed

-- 
manpage not recognized if doesn't start with ".TH "
https://bugs.launchpad.net/bugs/893337
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to