Skip to content

Commit

Permalink
DnsServerAPI: skip 'bind' absence in mode test
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Jul 1, 2019
1 parent 66bc64d commit d85ce1a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions library/network/src/modules/DnsServerAPI.pm
Expand Up @@ -61,6 +61,7 @@ YaST::YCP::Import ("Report");
YaST::YCP::Import ("IP");
# for syntax checking
YaST::YCP::Import ("Hostname");
YaST::YCP::Import ("Mode");

our %TYPEINFO;
my $package_installed = -1;
Expand Down Expand Up @@ -654,6 +655,11 @@ sub UnquoteString {
}

sub Init {
if (Mode->test ()) {
$package_installed = 1;
y2milestone("TestMode -> PackageSystem->Installed: ", $package_installed);
}

if ($package_installed != -1){
return $package_installed;
}
Expand Down
8 changes: 8 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jul 1 13:41:45 UTC 2019 - Knut Anderssen <kanderssen@suse.com>

- bsc#1138668
- Fixed failing old testsuite in yast2-dns-server package: do not
depend on the environment, skip bind absence in Mode.test()
- 4.2.11

-------------------------------------------------------------------
Fri Jun 21 13:19:01 UTC 2019 - Josef Reidinger <jreidinger@suse.com>

Expand Down
6 changes: 3 additions & 3 deletions package/yast2.spec
@@ -1,7 +1,7 @@
#
# spec file for package yast2
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -17,7 +17,7 @@


Name: yast2
Version: 4.2.10
Version: 4.2.11
Release: 0
Summary: YaST2 Main Package
License: GPL-2.0-only
Expand Down Expand Up @@ -72,8 +72,8 @@ Requires: rubygem(%{rb_default_ruby_abi}:abstract_method)
# for file access using augeas
Requires: rubygem(%{rb_default_ruby_abi}:cfa)
# For converting to/from punycode strings
Requires: rubygem(%{rb_default_ruby_abi}:simpleidn)
Requires: sysconfig >= 0.80.0
Requires: rubygem(%{rb_default_ruby_abi}:simpleidn)
# for running scripts
Requires: rubygem(%{rb_default_ruby_abi}:cheetah)
# ag_ini section_private
Expand Down

0 comments on commit d85ce1a

Please sign in to comment.