lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

diffoscope: Revive hard links patch

+32 -20
+1 -2
pkgs/tools/misc/diffoscope/default.nix
··· 16 16 }; 17 17 18 18 patches = [ 19 - # Ignore different link counts - doesn't work with 85 20 - # ./ignore_links.patch 19 + ./ignore_links.patch 21 20 ]; 22 21 23 22 postPatch = ''
+31 -18
pkgs/tools/misc/diffoscope/ignore_links.patch
··· 1 - diff -ru -x '*~' diffoscope-orig/diffoscope/comparators/directory.py diffoscope/diffoscope/comparators/directory.py 2 - --- diffoscope-orig/diffoscope/comparators/directory.py 1970-01-01 01:00:01.000000000 +0100 3 - +++ diffoscope/diffoscope/comparators/directory.py 2016-12-08 17:37:55.000315157 +0100 4 - @@ -49,6 +49,7 @@ 5 - FILE_RE = re.compile(r'^\s*File:.*$') 6 - DEVICE_RE = re.compile(r'Device: [0-9a-f]+h/[0-9]+d\s+') 7 - INODE_RE = re.compile(r'Inode: [0-9]+\s+') 8 - + LINKS_RE = re.compile(r'Links: [0-9]+\s+') 9 - ACCESS_TIME_RE = re.compile(r'^Access: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') 10 - CHANGE_TIME_RE = re.compile(r'^Change: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') 1 + From a33e8018092e4a91dbc45e15bbeff760b3418512 Mon Sep 17 00:00:00 2001 2 + From: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> 3 + Date: Wed, 13 Sep 2017 16:53:38 +0300 4 + Subject: [PATCH] Ignore hard link counts 5 + 6 + --- 7 + diffoscope/comparators/directory.py | 2 ++ 8 + 1 file changed, 2 insertions(+) 9 + 10 + diff --git a/diffoscope/comparators/directory.py b/diffoscope/comparators/directory.py 11 + index 3b195bc..9071bb3 100644 12 + --- a/diffoscope/comparators/directory.py 13 + +++ b/diffoscope/comparators/directory.py 14 + @@ -66,6 +66,7 @@ else: 15 + FILE_RE = re.compile(r'^\s*File:.*$') 16 + DEVICE_RE = re.compile(r'Device: [0-9a-f]+h/[0-9]+d\s+') 17 + INODE_RE = re.compile(r'Inode: [0-9]+\s+') 18 + + LINKS_RE = re.compile(r'Links: [0-9]+\s+') 19 + ACCESS_TIME_RE = re.compile(r'^Access: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') 20 + CHANGE_TIME_RE = re.compile(r'^Change: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') 11 21 12 - @@ -57,6 +58,7 @@ 13 - line = Stat.FILE_RE.sub('', line) 14 - line = Stat.DEVICE_RE.sub('', line) 15 - line = Stat.INODE_RE.sub('', line) 16 - + line = Stat.LINKS_RE.sub('', line) 17 - line = Stat.ACCESS_TIME_RE.sub('', line) 18 - line = Stat.CHANGE_TIME_RE.sub('', line) 19 - return line.encode('utf-8') 22 + @@ -74,6 +75,7 @@ else: 23 + line = Stat.FILE_RE.sub('', line) 24 + line = Stat.DEVICE_RE.sub('', line) 25 + line = Stat.INODE_RE.sub('', line) 26 + + line = Stat.LINKS_RE.sub('', line) 27 + line = Stat.ACCESS_TIME_RE.sub('', line) 28 + line = Stat.CHANGE_TIME_RE.sub('', line) 29 + return line.encode('utf-8') 30 + -- 31 + 2.13.0 32 +