summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2013-11-22 13:28:51 +0100
committerFlorian Bruhin <git@the-compiler.org>2013-11-22 13:28:51 +0100
commitbca8857053948280a38b10471de300fc571d72cc (patch)
treefb964c2868d609a91c1fc3a18c7d4c50396ff987
parentc3083531318f97040cb9791c55673d54b32a8ce2 (diff)
downloadpyrmlint-bca8857053948280a38b10471de300fc571d72cc.tar.gz
pyrmlint-bca8857053948280a38b10471de300fc571d72cc.zip
Add own script for rmlint2fdupes
-rw-r--r--pyrmlint.py10
-rw-r--r--rmlint2fdupes.py12
2 files changed, 13 insertions, 9 deletions
diff --git a/pyrmlint.py b/pyrmlint.py
index 7f46fdc..72d320b 100644
--- a/pyrmlint.py
+++ b/pyrmlint.py
@@ -49,15 +49,7 @@ class Logreader:
self._parsedupl()
def main():
- r = Logreader()
- with open(sys.argv[1], 'rb') as f:
- r.parse(f)
- for pair in r.duplicates:
- for fobj in pair:
- # we want to treat the filename as binary
- sys.stdout.buffer.write(fobj.path + b'\n')
- sys.stdout.flush()
- print()
+ pass
if __name__ == '__main__':
main()
diff --git a/rmlint2fdupes.py b/rmlint2fdupes.py
new file mode 100644
index 0000000..03b0425
--- /dev/null
+++ b/rmlint2fdupes.py
@@ -0,0 +1,12 @@
+import sys
+import pyrmlint
+
+r = pyrmlint.Logreader()
+with open(sys.argv[1], 'rb') as f:
+ r.parse(f)
+for pair in r.duplicates:
+ for fobj in pair:
+ # we want to treat the filename as binary
+ sys.stdout.buffer.write(fobj.path + b'\n')
+ sys.stdout.flush()
+ print()