testing without sort control
authorShawn Boyette <sboyette@esilibrary.com>
Mon, 8 Dec 2008 23:11:18 +0000 (23:11 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Mon, 8 Dec 2008 23:11:18 +0000 (23:11 +0000)
compress_fingerprints

index b5f4470..993f5d6 100755 (executable)
@@ -41,11 +41,11 @@ sub populate_fingerprint {
     $fp{sha1}    = sha1_base64($stripped);
 
     # make sure file is sorted properly
-    if ($lastscore and $fp{compact} > $lastscore) {
-        print "Input file is sorted improperly or unsorted.\n";
-        die "Sort descending (sort -ru) and rerun this script.\n";
-    }
-    $lastscore = $fp{compact};
+    #if ($lastscore and $fp{compact} > $lastscore) {
+    #    print "Input file is sorted improperly or unsorted.\n";
+    #    die "Sort descending (sort -ru) and rerun this script.\n";
+    #}
+    #$lastscore = $fp{compact};
 
     # populate records hash
     $recs{ $fp{id} }{ $fp{sha1} } = {};