From 9c3c37a72735d23ef2aaaeaee2fdcd71291a2dff Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Fri, 15 Jan 2016 16:44:49 +0100 Subject: [PATCH] NOPUBLISH seems to work --- etherdump/commands/pull.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/etherdump/commands/pull.py b/etherdump/commands/pull.py index 9752ca5..6dc5445 100644 --- a/etherdump/commands/pull.py +++ b/etherdump/commands/pull.py @@ -25,6 +25,13 @@ use/prefer public interfaces ? (export functions) """ +def try_deleting (files): + for f in files: + try: + os.remove(f) + except OSError as e: + pass + def main (args): p = ArgumentParser("Check for pads that have changed since last sync (according to .meta.json)") p.add_argument("padid", nargs="*", default=[]) @@ -59,13 +66,6 @@ def main (args): # maxmsglen = 0 count = 0 for i, padid in enumerate(padids): - # TODO... - """ -Self-contained documents / and/or document receipts -storing enough information to reconstruct (or understand an error occurred) - """ - - if args.skip != None and i