]> arthur.barton.de Git - bup.git/commitdiff
split: add missing import "parse_date_or_fatal"
authorFabian xx4h Melters <xx4h@xx4h.de>
Tue, 1 Aug 2017 14:45:11 +0000 (16:45 +0200)
committerRob Browning <rlb@defaultvalue.org>
Thu, 28 Dec 2017 21:08:02 +0000 (15:08 -0600)
Without this "bup split -n NAME -d STAMP FILE" produces an error:

  Traceback (most recent call last):
    File "/usr/lib/bup/cmd/bup-split", line 67, in <module>
      date = parse_date_or_fatal(opt.date, o.fatal)
  NameError: name 'parse_date_or_fatal' is not defined

Signed-off-by: Fabian 'xx4h' Melters <xx4h@xx4h.de>
[rlb@defaultvalue.org: rebase on current master; adjust commit
 message; fix commit author]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/split-cmd.py

index 44d63230bf21a05601c755aae71d4509181cb8f6..80c7e0d0cce4ac66338445eb6fbf3eb44a8ae7d7 100755 (executable)
@@ -10,7 +10,8 @@ import os, sys, time
 from bup import hashsplit, git, options, client
 from bup.helpers import (add_error, handle_ctrl_c, hostname, log, parse_num,
                          qprogress, reprogress, saved_errors,
-                         userfullname, username, valid_save_name)
+                         userfullname, username, valid_save_name,
+                         parse_date_or_fatal)
 
 
 optspec = """