Mercurial > gcp
comparison gcp @ 58:58091eac8c8e
exit status updated and shown in manpage
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 20 Jun 2011 12:57:15 +0200 |
parents | cce259fe3f35 |
children | 7830d4244fb5 |
comparison
equal
deleted
inserted
replaced
57:d4f1235c860b | 58:58091eac8c8e |
---|---|
41 import dbus.service | 41 import dbus.service |
42 import dbus.mainloop.glib | 42 import dbus.mainloop.glib |
43 except ImportError,e: | 43 except ImportError,e: |
44 error(_("Error during import")) | 44 error(_("Error during import")) |
45 error(_("Please check dependecies:"),e) | 45 error(_("Please check dependecies:"),e) |
46 exit(2) | 46 exit(1) |
47 try: | 47 try: |
48 from progressbar import ProgressBar, Percentage, Bar, ETA, FileTransferSpeed | 48 from progressbar import ProgressBar, Percentage, Bar, ETA, FileTransferSpeed |
49 pbar_available=True | 49 pbar_available=True |
50 except ImportError, e: | 50 except ImportError, e: |
51 info (_('ProgressBar not available, please download it at http://pypi.python.org/pypi/progressbar')) | 51 info (_('ProgressBar not available, please download it at http://pypi.python.org/pypi/progressbar')) |
620 preserve = set(options.preserve.split(',')) | 620 preserve = set(options.preserve.split(',')) |
621 if not preserve.issubset(const_PRESERVE): | 621 if not preserve.issubset(const_PRESERVE): |
622 error (_("Invalide --preserve value\nvalid values are:")) | 622 error (_("Invalide --preserve value\nvalid values are:")) |
623 for value in const_PRESERVE: | 623 for value in const_PRESERVE: |
624 error('- %s' % value) | 624 error('- %s' % value) |
625 exit(2) | 625 exit(1) |
626 else: | 626 else: |
627 options.preserve = preserve | 627 options.preserve = preserve |
628 | 628 |
629 self.__sourcesSaving(options, args) | 629 self.__sourcesSaving(options, args) |
630 | 630 |