tools/pkg_war.bzl: Use .to_list() on web_xml.files

While compiling gitiles, I see this error (edited to fit in commit msg)

$ bazel build //:gitiles
ERROR: gitiles/BUILD:3:1: in _pkg_war rule //:gitiles:
Traceback (most recent call last):
File "gitiles/BUILD", line 3 While compiling
	_pkg_war(name = 'gitiles')
File "com_googlesource_gerrit_bazlets/tools/pkg_war.bzl", line 70, in _war_impl
	for web_xml in ctx.attr.web_xml.files: ...
type 'depset' is not iterable. Use the `to_list()` method to get a list.
Use --incompatible_depset_is_not_iterable=false to temporarily disable this check.

Using to_list() as recommended seems to solve the problem.

Change-Id: I6ff428262c6225cb712c709b2df87014e7c98028
diff --git a/tools/pkg_war.bzl b/tools/pkg_war.bzl
index ce094ff..888e162 100644
--- a/tools/pkg_war.bzl
+++ b/tools/pkg_war.bzl
@@ -67,7 +67,7 @@
         inputs.append(dep)
 
     if ctx.attr.web_xml:
-        for web_xml in ctx.attr.web_xml.files:
+        for web_xml in ctx.attr.web_xml.files.to_list():
             inputs.append(web_xml)
             cmd = cmd + _add_file(ctx.attr.name, web_xml, build_output + "/WEB-INF/")