Mercurial > p > roundup > code
comparison roundup/dist/command/build.py @ 4394:d4cd0a264098
fixed reporting of source missing warnings
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 12 Jul 2010 06:05:40 +0000 |
| parents | e233d7a66343 |
| children | 85dfe17c182e |
comparison
equal
deleted
inserted
replaced
| 4393:a531daf6f253 | 4394:d4cd0a264098 |
|---|---|
| 30 return | 30 return |
| 31 try: | 31 try: |
| 32 manifest = [l.strip() for l in f.readlines()] | 32 manifest = [l.strip() for l in f.readlines()] |
| 33 finally: | 33 finally: |
| 34 f.close() | 34 f.close() |
| 35 err = [line for line in manifest if not os.path.exists(line)] | 35 err = set([line for line in manifest if not os.path.exists(line)]) |
| 36 err.sort() | |
| 37 # ignore auto-generated files | 36 # ignore auto-generated files |
| 38 if err == ['roundup-admin', 'roundup-demo', 'roundup-gettext', | 37 err = err - set(['roundup-admin', 'roundup-demo', 'roundup-gettext', |
| 39 'roundup-mailgw', 'roundup-server']: | 38 'roundup-mailgw', 'roundup-server', 'roundup-xmlrpc-server']) |
| 40 err = [] | |
| 41 if err: | 39 if err: |
| 42 n = len(manifest) | 40 n = len(manifest) |
| 43 print '\n*** SOURCE WARNING: There are files missing (%d/%d found)!'%( | 41 print '\n*** SOURCE WARNING: There are files missing (%d/%d found)!'%( |
| 44 n-len(err), n) | 42 n-len(err), n) |
| 45 print 'Missing:', '\nMissing: '.join(err) | 43 print 'Missing:', '\nMissing: '.join(err) |
