[misc] 02/02: has-only: more classifiers

Chris West faux-guest at moszumanska.debian.org
Sat Apr 22 11:28:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

faux-guest pushed a commit to branch master
in repository misc.

commit 4a2efb3c9a1a7daad913fbc8c35c27bbdffc30b0
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Sat Apr 22 12:28:12 2017 +0100

    has-only: more classifiers
---
 has-only.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/has-only.py b/has-only.py
index ff149d4..9658616 100755
--- a/has-only.py
+++ b/has-only.py
@@ -60,8 +60,8 @@ def process(f):
     for file, before, after in without_xxd:
         has = set()
 
-        if file in {'file list', 'md5sums', 'Files', './control'}:
-            # TODO: confirm these are actually the special entries
+        if file in {'file list', 'md5sums', 'Files', './control', 'line order'}:
+            # TODO: this is a massive approximation; ignores variations like deleting a file
             continue
 
         if '1st/' in before and '/2nd' in after:
@@ -76,7 +76,8 @@ def process(f):
         if 'readelf --wide --debug-dump=info {}' == file:
             has.add('build_id')
 
-        if file.endswith('.rdb'):
+        if file.endswith('.rdb') or file.endswith('.rdx') or file.endswith('.rds')\
+                or file.endswith('.rdx-content'):
             has.add('rdb')
 
         yield tuple(sorted(has))
@@ -96,10 +97,12 @@ def main():
                 warn(path, 'unclassified problems')
                 continue
 
+            #if 1 == len(problems) and ('build_id',) in problems:
             if 'build_path' not in (x for y in problems for x in y):
                 print(path)
-            else:
-                warn(path, 'other problems: {}'.format(problems))
+                continue
+
+            warn(path, 'other problems: {}'.format(problems))
         except Exception as e:
             warn(path, 'failure:')
             raise

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list