From 68dc214667d7bce5e9e5daaa91791496eaa9a3e2 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Fri, 20 Mar 2015 17:05:52 -0400 Subject: [PATCH] allow updating repo type in util (removed from API) --- lib/tool_shed/util/repository_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tool_shed/util/repository_util.py b/lib/tool_shed/util/repository_util.py index 8c278ececa4..07dc36ba9ef 100644 --- a/lib/tool_shed/util/repository_util.py +++ b/lib/tool_shed/util/repository_util.py @@ -185,7 +185,7 @@ def update_repository( app, trans, id, **kwds ): return None, message # Whitelist properties that can be changed via this method - for key in ( 'description', 'long_description', 'remote_repository_url', 'homepage_url' ): + for key in ( 'type', 'description', 'long_description', 'remote_repository_url', 'homepage_url' ): # If that key is available, not None and different than what's in the model if key in kwds and kwds[ key ] is not None and kwds[ key ] != getattr( repository, key ): setattr( repository, key, kwds[ key ] )