Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> master : forward port - Advice users to contact NCC if access to a 'novell.com' repository is denied (bnc #464586).
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Thu, 12 Nov 2009 16:28:38 +0100
  • Message-id: <E1N8bgb-0000Yo-Mx@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit ee46ec575b6001c5e385b929d0dc641fc00ce698
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages