Package: linda Version: 0.3.10 Severity: normal Tags: patch Hello,
I found that linda outputs error "html-only-changelog" even when the correct changelogs are included in the package. The current regexp matches such a path /usr/share/doc/<package>/ChangeLog.html or /usr/share/doc/<package>/html/ChangeLog.html, and linda doubts if correspond ChangeLog.* are missing. I guess the following patch achieves to treat the files right on the directory /usr/share/doc/<package>/, and named changelog.* with case sensitive. Files do not conform to this changelog naming convention may be achieved in another scheme, according to Debian Policy Manual 12.7 Changelog files[1]. 1. http://www.debian.org/doc/debian-policy/ch-docs.html#s-changelogs --- changelog.py.orig +++ changelog.py @@ -29,7 +29,7 @@ self.signal_error('usd-symlink-no-depends') def search_changelogs(self): for chg in self.information['collector']('files', 'files').keys(): - if re.search(r'\/doc.*changelog', chg, re.IGNORECASE): + if re.match(r'/usr/share/doc/[^/]+/changelog\.', chg): full_file_name = os.path.join(self.information['dir'], \ 'unpacked', chg[1:]) file_path, file_name = os.path.split(chg) -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.10 Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Versions of packages linda depends on: ii binutils 2.15-5 The GNU assembler, linker and bina ii dash 0.5.2-1 The Debian Almquist Shell ii file 4.12-1 Determines file type using "magic" ii man-db 2.4.2-21 The on-line manual pager ii python 2.3.5-1 An interactive high-level object-o -- no debconf information Regards, -- Nobuhiro IMAI <[EMAIL PROTECTED]> Key fingerprint = F39E D552 545D 7C64 D690 F644 5A15 746C BD8E 7106
pgpcxES3qR66f.pgp
Description: PGP signature