Skip to content

Commit

Permalink
xmllint: Select only files that are present after applying the patch
Browse files Browse the repository at this point in the history
The previous filter caught deleted files, which made xmllint fail
  • Loading branch information
rmcc committed Jan 20, 2013
1 parent d3ebd6d commit 378ead6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlationlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
break
project = new_project

retval = os.system('cd %s ; xmllint --noout `git show FETCH_HEAD | grep ^diff | awk {\'print $3\'} | egrep "res/.*xml$" | sed -e \'s/^a\///g\'`' % (project))
retval = os.system('cd %s ; xmllint --noout `git show FETCH_HEAD | grep "^+++ b" | sed -e \'s/^+++ b\///g\' | egrep "res/.*xml$"`' % (project))
sys.exit(retval!=0)

0 comments on commit 378ead6

Please sign in to comment.