{
RepoInfo repo;
repo.setAlias("foo");
- repo.addBaseUrl(string("http://test.org"));
- BOOST_CHECK_MESSAGE( repo.keepPackages(), "http scheme is not cached");
- repo.setBaseUrl(string("ftp://test.org"));
- BOOST_CHECK_MESSAGE( repo.keepPackages(), "ftp scheme is not cached");
- repo.setBaseUrl(string("smb://test.org"));
- BOOST_CHECK_MESSAGE( !repo.keepPackages(), "smb scheme is cached");
- repo.setBaseUrl(string("file:///test.txt"));
- BOOST_CHECK_MESSAGE( !repo.keepPackages(), "file scheme is cached");
repo.setBaseUrl(string("http://test.org"));
- BOOST_CHECK_MESSAGE( repo.keepPackages(), "cache is depend on second url.");
+ BOOST_CHECK_MESSAGE( !repo.keepPackages(), "keepPackages must default to OFF");
}
//! \todo test this
/**
* Add a base url. \see baseUrls
* \param url The base url for the repository.
- * \note can change keepPackages,so change it after this call
*
* To recreate the base URLs list, use \ref setBaseUrl(const Url &) followed
* by addBaseUrl().
void addBaseUrl( const Url &url );
/**
* Clears current base URL list and adds \a url.
- * \note can change keepPackages,so change it after this call
*/
void setBaseUrl( const Url &url );