#set ($obj=$packages)
#set ($r=$obj.load($params.key))
#if($params.show=='updates')
#set ($pl=$packagelists)
#set ($r=$pl.load($params.list))
#set ($obj=$pl.getPackageToUpdate($obj.id))
#else
#set ($pl=$obj.getPackageList())
#end
#if($pl.checkApproval())
#set ($r=$obj.updateFrom($pl.origin))
#set ($r=$pl.removeApproval())
#end
#return_to_index("packages")
