projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08fc5a
)
if no tables dont search fkeys
author
Marko Kreen
<markokr@gmail.com>
Fri, 7 Dec 2007 16:33:48 +0000
(16:33 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Fri, 7 Dec 2007 16:33:48 +0000
(16:33 +0000)
python/londiste/setup.py
patch
|
blob
|
blame
|
history
diff --git
a/python/londiste/setup.py
b/python/londiste/setup.py
index 9095b41fb5d52befdd81e03827e3131801c45cc5..057e1a9f9090112a87a4cbb9ac5a8b3acb746d08 100644
(file)
--- a/
python/londiste/setup.py
+++ b/
python/londiste/setup.py
@@
-337,6
+337,9
@@
class SubscriberSetup(CommonSetup):
'active' : "select %s from londiste.find_table_%s(%%s)"}
table_list = self.clean_subscriber_tables(table_list)
+ if len(table_list) == 0:
+ self.log.info("No tables, no fkeys")
+ return
dst_db = self.get_database('subscriber_db')
dst_curs = dst_db.cursor()