[PATCH 1/1] Add missing import "parse_date_or_fatal"

12 views
Skip to first unread message

Rob Browning

unread,
Dec 28, 2017, 3:55:14 PM12/28/17
to bup-...@googlegroups.com, xx4h, Fabian 'xx4h' Melters
From: xx4h <xx...@localhost.localdomain>

to cmd/split-cmd.py

Signed-off-by: Fabian 'xx4h' Melters <xx...@xx4h.de>
---

Thanks for the fix. Redirected to bup-list as-per HACKING from pull
request https://github.com/bup/bup/pull/36

cmd/split-cmd.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/split-cmd.py b/cmd/split-cmd.py
index 5f52e708..a39fcb72 100755
--- a/cmd/split-cmd.py
+++ b/cmd/split-cmd.py
@@ -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 = """
--
2.15.1

Rob Browning

unread,
Dec 28, 2017, 4:11:22 PM12/28/17
to bup-...@googlegroups.com, Fabian xx4h Melters
From: Fabian xx4h Melters <xx...@xx4h.de>

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 <xx...@xx4h.de>
[r...@defaultvalue.org: rebase on current master; adjust commit
message; fix commit author]
Reviewed-by: Rob Browning <r...@defaultvalue.org>
Tested-by: Rob Browning <r...@defaultvalue.org>
---

Pushed to master. Thanks again.

cmd/split-cmd.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/split-cmd.py b/cmd/split-cmd.py
index 44d63230..80c7e0d0 100755
Reply all
Reply to author
Forward
0 new messages