Commit 9956cd17 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove older not-installed business templates too.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39483 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ac63880b
......@@ -63,7 +63,7 @@ for bt in bt_list:\n
elif installation_state == \'not_installed\':\n
if len([x for x in bt_list \\\n
if x.getTitle() == bt.getTitle() and \\\n
x.getInstallationState() == \'installed\' and \\\n
x.getInstallationState() in (\'installed\', \'not_installed\') and \\\n
int(x.getRevision() or \'0\') > int(bt.getRevision() or \'0\')]):\n
delete_list.append(bt_id)\n
\n
......
126
\ No newline at end of file
127
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment