From: Marko Kreen Date: Tue, 14 May 2013 11:47:16 +0000 (+0300) Subject: londiste add-table: --skip-non-existing ignores tables not on provider X-Git-Tag: skytools_3_1_5^2~7^2~6 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d3a7501f653a5cd6c0d535423ff6e8005325f6e8;p=skytools.git londiste add-table: --skip-non-existing ignores tables not on provider --- diff --git a/python/londiste/setup.py b/python/londiste/setup.py index 204850b6..aba6cd93 100644 --- a/python/londiste/setup.py +++ b/python/londiste/setup.py @@ -145,8 +145,11 @@ class LondisteSetup(CascadeAdmin): for tbl in args: tbl = skytools.fq_name(tbl) if (tbl in src_tbls) and not src_tbls[tbl]['local']: - self.log.error("Table %s does not exist on provider, need to switch to different provider", tbl) - problems = True + if self.options.skip_non_existing: + self.log.warning("Table %s does not exist on provider", tbl) + else: + self.log.error("Table %s does not exist on provider, need to switch to different provider", tbl) + problems = True if problems: self.log.error("Problems, canceling operation") sys.exit(1)