try to init the build system if it's missing

This commit is contained in:
Alexander van Gessel 2012-09-14 18:24:51 +01:00
parent 599082cd5a
commit ea822f4215

View file

@ -258,10 +258,12 @@ if __name__ == "__main__":
logging.info("Addon '%s' hasn't been modified, thus not uploaded.",
addon)
if is_new_addon:
init_build_system(addon_obj, addon, wescamp_dir, build_sys_dir)
has_build_system = os.path.exists(os.path.join(addon_obj.get_dir(), "Makefile"))
if has_updated:
if is_new_addon or not has_build_system:
has_build_system = init_build_system(addon_obj, addon, wescamp_dir, build_sys_dir)
if has_updated and has_build_system:
pot_update(addon_obj, addon)