Package: adequate
Version: 0.15.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch



In Ubuntu, the attached patch was applied to achieve the following:

  * debian/tests/run-test: Skip over non-deb members in changes files.

Essentially, when built with a recent dpkg-dev, your test packages
end up with .buildinfo files generated, and included in .changes.

This patch just skips over any changes member that doesn't end in
'deb', so you would process all udebs, debs, and ddebs, but not any
other non-deb files, like buildinfo.

... Adam

-- System Information:
Debian Release: stretch/sid
  APT prefers artful
  APT policy: (500, 'artful')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-19-lowlatency (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru adequate-0.15.1ubuntu2/tests/run-tests 
adequate-0.15.1ubuntu3/tests/run-tests
--- adequate-0.15.1ubuntu2/tests/run-tests      2015-10-15 16:38:34.000000000 
-0600
+++ adequate-0.15.1ubuntu3/tests/run-tests      2017-04-22 00:50:41.000000000 
-0600
@@ -145,8 +145,9 @@
                 for para in apt_pkg.TagFile(file):
                     for line in para['Files'].splitlines():
                         md5, size, section, priority, path = line.split()
-                        debpkg = DebPkg(path)
-                        packages[debpkg.name] += [debpkg]
+                        if path.endswith('deb'):
+                            debpkg = DebPkg(path)
+                            packages[debpkg.name] += [debpkg]
         elif path.endswith('.deb'):
             debpkg = DebPkg(path)
             packages[debpkg.name] += [debpkg]

Reply via email to