Work around new fileutils output
authorZygo Blaxell <zblaxell@waya.furryterror.org>
Sat, 9 Jan 2010 01:08:45 +0000 (20:08 -0500)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Sat, 9 Jan 2010 02:21:54 +0000 (21:21 -0500)
findutils now appends a redundant ".000000000" to the %T@ output.
I've apparently missed the window to get findutils to fix this, so
I've worked around it.

faster-dupemerge

index 833d7f29291ae66dab3ef1b9fb15cc4876a585a0..de9cc7940b11645cb8a3af51201bc32ce11026e7 100755 (executable)
@@ -537,7 +537,7 @@ end_merge:
 }
 
 while (<FIND>) {
-       my ($weak_key, $inode, $name) = m/^(\d+ \d+ \d+ \d+ -?\d+) (\d+) (.+)\0$/so;
+       my ($weak_key, $inode, $name) = m/^(\d+ \d+ \d+ \d+ -?[\d.]+) (\d+) (.+)\0$/so;
        die "read error: $!\nLast input line was '$_'" unless defined($name);
 
        print STDERR "weak_key=$weak_key inode=$inode name=$name\n" if $debug;