From: Allan Lyons Date: Fri, 1 May 2009 18:28:47 +0000 (-0600) Subject: Check for the existance of the function before trying to drop it. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bebc0055ecf573e0fa2fd663d8e6d52c5f8f1cdc;hp=bebc0055ecf573e0fa2fd663d8e6d52c5f8f1cdc;p=dak.git Check for the existance of the function before trying to drop it. At least on my machine, ignoring the error if the function doesn't exist doesn't work since psycopg2 bombs. So, we attempt to at least check if there are any functions with a similar name before trying to drop it. This way it should work better on an empty database where the function has never existed. Signed-off-by: Allan Lyons ---