Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 16262:55f369530122
mx archive: print warning only in verbose mode
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Fri, 27 Jun 2014 13:17:54 +0200 |
parents | 1f4955abca9b |
children | f5437f2db322 |
comparison
equal
deleted
inserted
replaced
16261:a0f66e9174e7 | 16262:55f369530122 |
---|---|
101 zf._provenance = {} | 101 zf._provenance = {} |
102 existingSource = zf._provenance.get(arcname, None) | 102 existingSource = zf._provenance.get(arcname, None) |
103 isOverwrite = False | 103 isOverwrite = False |
104 if existingSource and existingSource != source: | 104 if existingSource and existingSource != source: |
105 if arcname[-1] != os.path.sep: | 105 if arcname[-1] != os.path.sep: |
106 log('warning: ' + self.path + ': avoid overwrite of ' + arcname + '\n new: ' + source + '\n old: ' + existingSource) | 106 logv('warning: ' + self.path + ': avoid overwrite of ' + arcname + '\n new: ' + source + '\n old: ' + existingSource) |
107 isOverwrite = True | 107 isOverwrite = True |
108 zf._provenance[arcname] = source | 108 zf._provenance[arcname] = source |
109 return isOverwrite | 109 return isOverwrite |
110 | 110 |
111 if self.mainClass: | 111 if self.mainClass: |