ref: refs/heads/master
commit ee46ec575b6001c5e385b929d0dc641fc00ce698
Author: Duncan Mac-Vicar P
Date: Thu Nov 12 16:28:38 2009 +0100
forward port
- Advice users to contact NCC if access to a 'novell.com' repository is denied (bnc #464586).
---
zypp/media/MediaCurl.cc | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/zypp/media/MediaCurl.cc b/zypp/media/MediaCurl.cc
index 02152e5..3c57464 100644
--- a/zypp/media/MediaCurl.cc
+++ b/zypp/media/MediaCurl.cc
@@ -858,7 +858,17 @@ void MediaCurl::evaluateCurlCode( const Pathname &filename,
case 504: // gateway timeout
ZYPP_THROW(MediaTimeoutException(url));
case 403:
- ZYPP_THROW(MediaForbiddenException(url));
+ {
+ string msg403;
+ if (url.asString().find("novell.com") != string::npos)
+ msg403 = str::form(_(
+ "Permission to access '%s' denied.\n\n"
+ "Visit the Novell Customer Center to check whether"
+ " your registration is valid and has not expired."),
+ url.asString().c_str());
+
+ ZYPP_THROW(MediaForbiddenException(url, msg403));
+ }
case 404:
ZYPP_THROW(MediaFileNotFoundException(_url, filename));
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org