[yast-commit] r46242 - in /branches/SuSE-SLE-10-SP2-Branch/registration: VERSION package/yast2-registration.changes src/modules/Register.ycp
![](https://seccdn.libravatar.org/avatar/dbc5930319c56fc3c749e36d2fb7fd88.jpg?s=120&d=mm&r=g)
Author: jdsn
Date: Tue Apr 8 16:10:25 2008
New Revision: 46242
URL: http://svn.opensuse.org/viewcvs/yast?rev=46242&view=rev
Log:
fix SMT certificate installation in autoyast mode (bnc#377929)
2.13.22
Modified:
branches/SuSE-SLE-10-SP2-Branch/registration/VERSION
branches/SuSE-SLE-10-SP2-Branch/registration/package/yast2-registration.changes
branches/SuSE-SLE-10-SP2-Branch/registration/src/modules/Register.ycp
Modified: branches/SuSE-SLE-10-SP2-Branch/registration/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/registration/VERSION?rev=46242&r1=46241&r2=46242&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/registration/VERSION (original)
+++ branches/SuSE-SLE-10-SP2-Branch/registration/VERSION Tue Apr 8 16:10:25 2008
@@ -1 +1 @@
-2.13.21
+2.13.22
Modified: branches/SuSE-SLE-10-SP2-Branch/registration/package/yast2-registration.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/registration/package/yast2-registration.changes?rev=46242&r1=46241&r2=46242&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/registration/package/yast2-registration.changes (original)
+++ branches/SuSE-SLE-10-SP2-Branch/registration/package/yast2-registration.changes Tue Apr 8 16:10:25 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Apr 8 16:06:58 CEST 2008 - jdsn@suse.de
+
+- fix SMT certificate installation in autoyast mode (bnc#377929)
+- 2.13.22
+
+-------------------------------------------------------------------
Wed Apr 2 14:57:00 CEST 2008 - jdsn@suse.de
- renaming all registration cofiguration parameters (bnc#376000)
Modified: branches/SuSE-SLE-10-SP2-Branch/registration/src/modules/Register.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/registration/src/modules/Register.ycp?rev=46242&r1=46241&r2=46242&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/registration/src/modules/Register.ycp (original)
+++ branches/SuSE-SLE-10-SP2-Branch/registration/src/modules/Register.ycp Tue Apr 8 16:10:25 2008
@@ -502,78 +502,83 @@
}
-
- // in autoYaST mode we automatically trust - we are done here
- if ( trust || ay ) { return `ok; }
-
- // ask user if he trusts the certificate
+ // log certificate details
map cP = RegisterCert::parseCertificate(certTmpFile);
y2milestone("SMT certificate file information: %1", cP);
- // compare with existing certificate (bnc#376000)
- if (certExists == 0)
+
+ // in autoYaST mode we automatically trust
+ if ( !ay ) // (bnc#377929)
{
- map orig_cP = RegisterCert::parseCertificate(smtpemFile);
- if (orig_cP["FINGERPRINT"]:"foo" == cP["FINGERPRINT"]:"bar" )
+ // ask user if he trusts the certificate
+
+ // compare with existing certificate (bnc#376000)
+ if (certExists == 0)
{
- // return `ok if fingerprints match - no need to ask again
- y2milestone("Current SMT certificate is up to date and will be kept.");
- return `ok;
+ map orig_cP = RegisterCert::parseCertificate(smtpemFile);
+ if (orig_cP["FINGERPRINT"]:"foo" == cP["FINGERPRINT"]:"bar" )
+ {
+ // return `ok if fingerprints match - no need to ask again
+ y2milestone("Current SMT certificate is up to date and will be kept.");
+ return `ok;
+ }
}
- }
- string trustQuestion = _("Do you want to trust this certificate?");
- string trustMessage = _("This certificate will be used to connect to the SMT server.\nYou have to trust this certificate in order to continue with the Registration.");
+ string trustQuestion = _("Do you want to trust this certificate?");
+ string trustMessage = _("This certificate will be used to connect to the SMT server.\nYou have to trust this certificate in order to continue with the Registration.");
- string certInfo = "";
- list issueList = (list) cP["ISSUER"]:[];
- //translators: this is certificate context
- certInfo = certInfo + _("<p><b>Issued For:</b></p>");
- if (size (issueList) > 0)
- {
- certInfo = certInfo + "<pre>";
- foreach (map
participants (1)
-
jdsn@svn.opensuse.org