Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r40071 - in /trunk/packager: package/yast2-packager.changes src/modules/SourceDialogs.ycp
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Wed, 08 Aug 2007 07:33:58 -0000
  • Message-id: <20070808073358.634B5CDFAB@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Wed Aug  8 09:33:58 2007
New Revision: 40071

URL: http://svn.opensuse.org/viewcvs/yast?rev=40071&view=rev
Log:
- allow entering an IP address in the server name widget (#288445)

Modified:
    trunk/packager/package/yast2-packager.changes
    trunk/packager/src/modules/SourceDialogs.ycp

Modified: trunk/packager/package/yast2-packager.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=40071&r1=40070&r2=40071&view=diff
==============================================================================
--- trunk/packager/package/yast2-packager.changes (original)
+++ trunk/packager/package/yast2-packager.changes Wed Aug  8 09:33:58 2007
@@ -3,6 +3,7 @@
 
 - properly detect ISO image (disable autorefresh)
 - show download progress when installing packages (#297843)
+- allow entering an IP address in the server name widget (#288445)
 
 -------------------------------------------------------------------
 Mon Aug  6 15:06:37 CEST 2007 - lslezak@xxxxxxx

Modified: trunk/packager/src/modules/SourceDialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SourceDialogs.ycp?rev=40071&r1=40070&r2=40071&view=diff
==============================================================================
--- trunk/packager/src/modules/SourceDialogs.ycp (original)
+++ trunk/packager/src/modules/SourceDialogs.ycp Wed Aug  8 09:33:58 2007
@@ -28,6 +28,7 @@
 import "NetworkPopup";
 import "String";
 import "Hostname";
+import "IP";
 
 // common functions / data
 
@@ -908,9 +909,12 @@
     string host = NormalizeHost ((string)UI::QueryWidget (`id (`server), `Value));
     if (! Hostname::CheckFQ (host))
     {
-       UI::SetFocus (`server);
-       Popup::Message (Hostname::ValidFQ ());
-       return false;
+       if (!IP::Check(host))
+       {
+           UI::SetFocus (`server);
+           Popup::Error(sformat("%1\n\n%2", Hostname::ValidFQ (), IP::Valid4()));
+           return false;
+       }
     }
 
     return true;

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages