Commit 0dfb8182 authored by Daniel Shahaf's avatar Daniel Shahaf Committed by Chris Lamb
Browse files

Fix test failures with upcoming file(1) 5.35. Thanks to Christoph Biedl for...


Fix test failures with upcoming file(1) 5.35. Thanks to Christoph Biedl for the heads-up in advance. (Closes: #912756)

The regexp now covers both libmagic < 5.35 and libmagic >= 5.35.

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent f4a93c1b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class Tcpdump(Command):

class PcapFile(File):
    DESCRIPTION = "tcpdump capture files (.pcap)"
    FILE_TYPE_RE = re.compile(r'^tcpdump capture file\b')
    FILE_TYPE_RE = re.compile(r'^(tcpdump|pcap) capture file\b')

    def compare_details(self, other, source=None):
        return [Difference.from_command(