Changeset 146
- Timestamp:
- 08/19/06 15:54:56 (7 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (3 diffs)
- branches/mk/tests/unit/test_index_unpack.py (modified) (1 diff)
- branches/mk/tests/unit/test_index_url_download.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r145 r146 1278 1278 msg += "\nDetailed info available in log file %s" % self.logfile 1279 1279 1280 raise CheesecakeError( msg)1280 raise CheesecakeError("Error: " + msg) 1281 1281 1282 1282 def cleanup(self, remove_log_file=True): … … 1356 1356 from distutils.errors import DistutilsError 1357 1357 except ImportError, e: 1358 msg = " Error:setuptools is not installed and is required for downloading a package by name\n"1358 msg = "setuptools is not installed and is required for downloading a package by name\n" 1359 1359 msg += "You can download and process a package by its full URL via the -u or --url option\n" 1360 1360 msg += "Example: python cheesecake.py --url=http://www.mems-exchange.org/software/durus/Durus-3.1.tar.gz" … … 1427 1427 if not status: 1428 1428 drop_setuptools_info(captured_stdout, output) 1429 self.raise_exception(" Error:setuptools returned an error: %s\n" % str(output).splitlines()[0])1429 self.raise_exception("setuptools returned an error: %s\n" % str(output).splitlines()[0]) 1430 1430 1431 1431 # If fetch returned nothing, package wasn't found. 1432 1432 if output is None: 1433 1433 drop_setuptools_info(captured_stdout) 1434 self.raise_exception(" Error:Could not find distribution for " + self.name)1434 self.raise_exception("Could not find distribution for " + self.name) 1435 1435 1436 1436 # Defaults. branches/mk/tests/unit/test_index_unpack.py
r93 r146 48 48 assert 0 # This statement should not be reached 49 49 except CheesecakeError, e: 50 msg = " Could not unpack package %s ... exiting" % \50 msg = "Error: Could not unpack package %s ... exiting" % \ 51 51 os.path.join(default_temp_directory, package_file) 52 52 msg += "\nDetailed info available in log file %s" % self.logfile branches/mk/tests/unit/test_index_url_download.py
r93 r146 59 59 assert 0 # This statement should not be reached 60 60 except CheesecakeError, e: 61 msg = " Got '404 Not Found' error while trying to download package ... exiting"61 msg = "Error: Got '404 Not Found' error while trying to download package ... exiting" 62 62 msg += "\nDetailed info available in log file %s" % logfile 63 63 assert str(e) == msg
