Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49781 - /trunk/dns-server/src/DnsZones.pm
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Wed, 06 Aug 2008 14:14:27 -0000
  • Message-id: <20080806141427.6534829FCF@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Wed Aug 6 16:14:27 2008
New Revision: 49781

URL: http://svn.opensuse.org/viewcvs/yast?rev=49781&view=rev
Log:
To keep testsuite compatible


Modified:
trunk/dns-server/src/DnsZones.pm

Modified: trunk/dns-server/src/DnsZones.pm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/DnsZones.pm?rev=49781&r1=49780&r2=49781&view=diff
==============================================================================
--- trunk/dns-server/src/DnsZones.pm (original)
+++ trunk/dns-server/src/DnsZones.pm Wed Aug 6 16:14:27 2008
@@ -24,6 +24,7 @@

YaST::YCP::Import ("Hostname");
YaST::YCP::Import ("String");
+YaST::YCP::Import ("Mode");

#use io_routines;
#use check_routines;
@@ -58,6 +59,11 @@
my $self = shift;

my $out = SCR->Execute (".target.bash_output", "/bin/hostname --fqdn");
+
+ if (Mode->test()) {
+ return "";
+ }
+
# standard return
if ($out->{"exit"} eq "0") {
my $stdout = $out->{"stdout"};

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

< Previous Next >
This Thread
  • No further messages