summaryrefslogtreecommitdiff
path: root/bin/fmt-metadata
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fmt-metadata')
-rwxr-xr-xbin/fmt-metadata4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/fmt-metadata b/bin/fmt-metadata
index 0682414..7867d63 100755
--- a/bin/fmt-metadata
+++ b/bin/fmt-metadata
@@ -4,15 +4,13 @@ require 'time'
snapshot = ARGV.first.to_i
$stdin.each_line do |line|
- m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.]+)(\S+) *$/.match(line)
+ m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.-]+)(\S+) *$/.match(line)
raise "Malformed line: #{line}" unless m
name = m[1]
datetime = m[2]
size_numb = m[3]
size_unit = m[4]
- next if name.downcase == "parent directory"
-
# The Unicode.org web server switched the timezone of timestamps
# in May 2004
if snapshot < 20040500000000