[Cupt-devel] Bug#672804: cupt update fails when no download manager is present

Jonathan Nieder jrnieder at gmail.com
Mon May 14 06:55:10 UTC 2012


Eugene V. Lyubimkin wrote:
> On 2012-05-13 14:38, Jonathan Nieder wrote:

>> 	Depends: libcupt2-0-downloadmethod-curl | libcupt2-0-downloadmethod
>
> These are put to Recommends by intent, because:
> 1) there are file:// and copy:// built-ins;

Yeah, good point. :)

The tweak below would have made it harder to forget.

Thanks for explaining,
Jonathan

 cpp/lib/src/download/methodfactory.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git i/cpp/lib/src/download/methodfactory.cpp w/cpp/lib/src/download/methodfactory.cpp
index 961a8999..e3e09e2f 100644
--- i/cpp/lib/src/download/methodfactory.cpp
+++ w/cpp/lib/src/download/methodfactory.cpp
@@ -170,7 +170,7 @@ download::Method* MethodFactoryImpl::getDownloadMethodForUri(const download::Uri
 		return (methodBuilderIt->second)();
 	}
 
-	fatal2(__("no download handlers available"));
+	fatal2(__("no download handlers available for the protocol '%s'"), protocol);
 	return NULL; // unreachable
 }
 





More information about the Cupt-devel mailing list