[ARVADOS] updated: d31988b6da2d779a8f3ba4ba3c40760f9729c59f
Git user
git at public.curoverse.com
Fri Mar 24 14:42:07 EDT 2017
Summary of changes:
services/api/Rakefile | 11 +++++++++++
1 file changed, 11 insertions(+)
via d31988b6da2d779a8f3ba4ba3c40760f9729c59f (commit)
from 727c1e475afcb1a8fda1f9b689bb3e941ae93cec (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d31988b6da2d779a8f3ba4ba3c40760f9729c59f
Author: Tom Clegg <tom at curoverse.com>
Date: Fri Mar 24 14:37:22 2017 -0400
Remove -i flag from Rails3 pg_dump invocation.
No issue #
diff --git a/services/api/Rakefile b/services/api/Rakefile
index fbbf53e..6df88c3 100644
--- a/services/api/Rakefile
+++ b/services/api/Rakefile
@@ -63,3 +63,14 @@ namespace :db do
end
end
end
+
+# Work around Rails3+PostgreSQL9.5 incompatibility (pg_dump used to
+# accept -i as a no-op, but now it's not accepted at all).
+module Kernel
+ alias_method :orig_backtick, :`
+ def `(*args) #`#` sorry, parsers
+ args[0].sub!(/\Apg_dump -i /, 'pg_dump ') rescue nil
+ STDERR.puts "`#{args.inspect}`"
+ orig_backtick(*args)
+ end
+end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list