public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/
Date: Tue, 29 Oct 2019 21:21:31 +0000 (UTC)	[thread overview]
Message-ID: <1572384053.adf9ed1917ab33ff0db1b9646a7e174c8e3e9184.fordfrog@gentoo> (raw)

commit:     adf9ed1917ab33ff0db1b9646a7e174c8e3e9184
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 29 21:20:03 2019 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Oct 29 21:20:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=adf9ed19

fix - check if xml file is empty

Bug: https://bugs.gentoo.org/667590
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 src/py/build-xml-rewrite | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/py/build-xml-rewrite b/src/py/build-xml-rewrite
index b449305..f839615 100755
--- a/src/py/build-xml-rewrite
+++ b/src/py/build-xml-rewrite
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-import sys
+import sys, os
 import xml.etree.cElementTree as et
 from optparse import OptionParser
 
@@ -32,6 +32,7 @@ def main():
     gcp_sub = et.Element('classpath', path=gcp_str)
 
     for file in args:
+        if os.path.getsize(file) == 0 : continue
         tree = et.ElementTree(file=file)
         if gcp or options.encoding:
             for javac in tree.getiterator('javac'):


             reply	other threads:[~2019-10-29 21:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29 21:21 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-19 17:09 [gentoo-commits] proj/javatoolkit:master commit in: src/py/ Miroslav Šulc
2020-12-15 10:21 Miroslav Šulc
2020-07-15 20:15 Patrice Clement
2019-10-29 20:54 Miroslav Šulc
2017-08-13 22:15 Patrice Clement
2017-08-13 21:14 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-11 13:12 Patrice Clement
2017-08-09 22:35 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1572384053.adf9ed1917ab33ff0db1b9646a7e174c8e3e9184.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox